Hopefully someone can help me out on this one.
Consider the following use-cases:
- Add a Role to a User
- Remove/Revoking a Role from a User
The interface into the system is RESTFUL.
When adding a role the following URL is used:
PUT /user/{userId}/role/{roleId}
When removing/revoking a role from a user the following URL is used:
DELETE /user/{userId}/role/{roleId}
My gut feeling is that both these RESTFUL calls should be a PUT and the URLs should be amended too:
PUT /user/{userId}/register/role/{roleId}
PUT /user/{userId}/revoke/role/{roleId}
Thoughts?
Thanks & Regards