iver-wharf/wharf-api

PUT endpoints should take ID from path parameter

Closed this issue · 0 comments

Based on RFC-0016 (iver-wharf/rfcs#16)

The PUT method in REST is meant to represent a "replace". Similar to the GET method, the subject (which object to get/replace) should come from the URL path.

Expected

PUT /project/{projectId}
PUT /project/{projectId}/branch
PUT /provider/{providerId}
PUT /token/{tokenId}

Actual

PUT /project/
PUT /branches
PUT /provider
PUT /token