I have a resource that can be reach at the URI /resources/{resource_identifier}
and it has a 'status' property that I want be accessible. I've thought of a few options for this, which would be the 'best' or 'most RESTfull'?
Option One Append actions onto the URI and have the client POST
to these URIs
/resources/{resource_identifier}/void
/resources/{resource_identifier}/open
/resources/{resource_identifier}/close
This looks clumsy though.
Option Two Use a query param in the URI and have the client PATCH
to these
/resources/{resource_identifier}?transition=void
/resources/{resource_identifier}?transition=open
/resources/{resource_identifier}?transition=close
Option Three Use the payload of the request and have the client PUT
/resources/{resource_identifier}
payload options:
{ ..., "status" :"void" }
{ ..., "status" :"open" }
{ ..., "status" :"close" }
Or maybe something else altogether?