...
I know that under strict ReSTful architecture, there should be no hint of the service being provided in the URI naming (in other words avoid rpc style naming conventions), to this end I have mapped eah URI to one and only one HTTP command.
Under the hood
Let's exam the following service entry points
Info | ||
---|---|---|
| ||
@GET @POST |
Essentially I have created two entry points to the same service __createUser() on the same interface class UserRestService. I am going to repeat this pattern for all the other services I want to expose. This is a simple case of refactoring the interfaces methods.