Closed alelb closed 6 years ago
What RFC mandates?
It's a good flow choise to return always the resource created/updated.
Do we have to reload resource at api or storage level? @leodido
When the service provider successfully creates the new resource, an
HTTP response SHALL be returned with HTTP status code 201 (Created).
The response body SHOULD contain the service provider's
representation of the newly created resource.
I suggest to fetch the resource after its insertion here, then it can be returned within the response's body.
:+1:
When a new resource is created, an HTTP response is returned with HTTP status code 201 (Created). There isn't the newly created resource in the body of the response.
We want to fix that? @leodido @samechelon @leogr