Open spg opened 10 years ago
That's a good idea.
+1 good idea, I would recommend that as well
When filtering resources, it's a good practice to place matrix params after them, like /groups;class=a.
It's not the case presented (a search - action - endpoint) but if you're going to developer such feature, you should provide options of uri forming.
That's achievable through @BeanParam which is part of Jax-RS 2.0 spec. Let's plan this for 1.4
So, is there any way to use @BeanParam now?
Suppose I flush a bean from an GWT Editor, and that bean represents search parameters:
A common REST practice is to use a GET request and pass the search as query params:
Right now, the only way to build this query string is this is to decompose the POJO into the service method:
It would be awesome to pass the
SearchParams
object as-is to the service method:This imposes a few questions that need answers: