Actions
Bug #6882
closedPOST create responses should be 201
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.
Updated by Alon Goldboim over 9 years ago
- Related to Bug #10356: POST and PUT should use RABL templates for the response. added
Updated by Dominic Cleal over 9 years ago
- 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
Fixed via #10356.
Updated by Dominic Cleal over 9 years ago
- Copied to Bug #11100: POST create responses should contain Location header of new resource added
Actions