microsoft / api-guidelines

Microsoft REST API Guidelines
Other
22.69k stars 2.71k forks source link

Guidance on response payload with 201 #481

Open OlgaPodo opened 1 year ago

OlgaPodo commented 1 year ago

OData says request that successfully creates a resource returns 201 Created. In this case, the response body MUST contain the resource created.

Microsoft REST API Guidelines say "Services MAY also return the full metadata for the created item in the response."

Graph Guidelines don't say anything that I have found.