Rest webservice Jersey Backbone jquery

GET to retrieve and search data POST to add data PUT to update data DELETE to delete data A typical resource class: @Path(“/wines”) public class WineResource {     WineDAO dao = new WineDAO();     @GET     @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })     public List<Wine> findAll() {         return dao.findAll();     }     @GET @Path(“search/{query}”)     @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })     public List<Wine> findByName(@PathParam(“query”) String query) {         return dao.findByName(query);     }…