Bug #6882
closed
POST create responses should be 201
Added by Daniel Lobato Garcia about 10 years ago.
Updated about 6 years ago.
Description
All api/v2 create responses are 200, with the except of interfaces.
However, the RFC specifies that when a resource is created, the server should return a 201 code, and a Location header with the location of the newly created resource.
process_success in base_controller needs to be changed to match the RFC.
- Related to Bug #10356: POST and PUT should use RABL templates for the response. added
- Status changed from New to Closed
- Assignee set to Alon Goldboim
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 63
- Copied to Bug #11100: POST create responses should contain Location header of new resource added
Also available in: Atom
PDF