Thank you in advance for being patient with a REST and Jersey noob.
I have created a root resource call AccountsResource with the
@Path("/accounts"). This class returns a list of accounts in the
system.
At this point I could create a subresource /accounts/{id} that would
retrieve information about a specific account....or I could create a
root resource called AccountResource that would always require an id,
ie /account/{id}.
What is the general pattern for handling containers and then specific
items within the container. Is /accounts/{id} correct for retrieving a
specific account...or is /account/{id} the preferred pattern?
Regards,
John