On 04/02/2013 14:06, Christian Schneider wrote:
One other idea for the username / userId based methods.
Why not simply use:
/users/{userIdorName}
So basically you could do
get /users/100 or get /users/chris@mydomain
We could handle both using
@GET
@Path("{userId}")
UserTO read(@PathParam("userId") String userId);
This is convenient for any kind of client and quite efficient at the
same time.
+1
This seems to be the egg of Columbus.
Regards.
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/