I'm getting my teeth into designing a RESTful web-app in JAVA with Jersey.
I have a design question.
Lets say I want to return all the messages for a user. Now I have exposed the messages at the /messages
uri.
Now when I do a GET
call to the server, so use @QueryParam
to do this?
So the url to return all the messages for user 1234
would be localhost/messages?user_id=1234
Or is there a better way to do this? Note, I have not got any user authentication built yet, nor do I know how to implement that piece yet.