I want to know whats right in the RESTful prespective when i want to update a resource but there are multiple operations, each one with a different flow in the business layer
for example, there is 3 cases to change the task status (all of them will update the task)
- Acquire
- Release
- Update
so to do that what i would do is doing a PUT to:
PUT: Tasks/{taskId}?flag=acquire
The reason i am asking is because if this is valid, What I'll do is:
In the back end code I'll make a condition on the flag, based on each value will do something different entirely (I don't like that from the code perspective), but is this the right way to do it, or there is an alternative way to define the resources from the REST perspective ?