cs3org / OCM-API

OpenCloudMesh API
38 stars 11 forks source link

Federated sharing: sending a share offer status code 200 #5

Closed dvh closed 7 years ago

dvh commented 7 years ago

This should be a 201 Created (RFC7231, Section 6.3.2) containing a Location response header to the new record, e.g. /cloud/shares/{remoteId}. Common practice is to return the new record in the response as well, so the client can consume the new record without having to perform a new request (e.g. to save the created remoteId).

dvh commented 7 years ago

This is fixed in the current spec.