Details
Description
The current endpoint for updating the status(active/paused/terminated) for a deployment is a PUT request to /deployments/by/status/
{status}with the merchant id in the body of the request.
This feels a bit odd.
This should be changed to be a put to /deployments/
{merchantUuid}/status so the deployment for a merchant is treated like a resource and we are just modifying that resource. The status value could continue to be passed in the body of the request or as a path parameter.
The /
{object}/by/
{fieldname}/
{fieldvalue}url scheme is used for filtering objects by their values because it reads very naturally for that purpose and the results of such a query is not a real resource.