File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Please help me correct my application design(using REST API and jersey) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Please help me correct my application design(using REST API and jersey)" Watch "Please help me correct my application design(using REST API and jersey)" New topic
Author

Please help me correct my application design(using REST API and jersey)

Satyaprakash Joshii
Ranch Hand

Joined: Jun 18, 2012
Posts: 131
I am using Jersey API for REST WS.I have Customer POJO which has customer Id, customer details e.t.c....If I use DELETE method for deleting customers, as soon as the server is restarted the deleted resource(Customer) will still be there as Rest API is stateless....So for deleting the record I am passing the parameter Customer Id using GET or POST and deleting the record from the database.This is working fine. Is this the correct way or I should use the DELETE method instead? If I use DELETE method the record(custoner) will be deleted, but as soon as the server is restarted , the delete record is still shown(because of statelessness)..

Please advice...Thanks...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me correct my application design(using REST API and jersey)
 
Similar Threads
doubt regarding deleting a resource in REST WS with or without DELETE method?
Deleting a Category
DBMain interface: lock - delete - unlock or lock/unlock within delete?
NX: URLyBird 1.3.2. Question about the process of booking.
Database .db file question