The Dojo Toolkit uses the JsonRest store to communicate to your server with REST calls. In the dGrid the column headers are sortable. When a column is clicked, there is a call to the server with sort details. I do not know how to handle these calls for sorting in my Java code. Using Jax-RS (Jersey 1.13), how do I build a restful method that matches and responds to the sort query string shown below?
For example, sorting by the "ID" column results in this http request:
/rest/Subcategory/?sort(-subcatId)
I am unclear how to extract the sort query string value using this syntax. I tried @QueryParam("sort")
and failed. I am currently searching for sort examples in Java. I also am searching the coding conventions for Restful Services.