2
I know the difference, but when do I use Pathparam or Queryparam? It is correct the following explanation?
If there is a scenario to Retrieve a record based on id, for example you need to get the Details of the Employee Whose id is 15, then you can have Resource with @Pathparam.
GET /employee/{id}
If there is a scenario Where you need to get the Details of all Employees but only 10 at a time, you may use query param
GET /employee?start=1&size=10
This is not something native to Java, right? I assumed given similar question in Soen that it comes to the Jersey framework, but if I’m mistaken please reverse my edit.
– mgibsonbr
Thank you, I made the correction! The correct tag is "web-service"
– Daniela Morais