craton/api-ref/source/v1
Mark Harrington 5411d8fc84 Update POST response code and add location header
This commit updates POST responses based on API-WG guidelines [1] and
RFC 2616 [2]. Specifically:
- POST requests have been updated to return '201 (Created)' on success
  (previously returned 200)
- a Location header field has been added to responses (previously not
  included in response)

In addition:
- The unit tests have been updated to deal with 201 return codes and
  to check for the presense of the Location header
- The generate_fake_data script has been updated to deal with 201
  return codes
- POST requests in the documentation have been updated to the
  new status code

[1] https://specs.openstack.org/openstack/api-wg/guidelines/http.html
[2] https://tools.ietf.org/html/rfc2616#section-9.5

Change-Id: I2246ff5edfa6fccd9711b67efb73504fb1eb2653
Closes-bug: 1658800
2017-02-07 21:44:50 +00:00
..
cells.inc Update POST response code and add location header 2017-02-07 21:44:50 +00:00
hosts.inc Update POST response code and add location header 2017-02-07 21:44:50 +00:00
index.rst Implements API documentation 2016-09-09 19:31:03 +00:00
parameters.yaml Rename /data endpoint to /variables 2016-11-18 14:54:11 +00:00
regions.inc Update POST response code and add location header 2017-02-07 21:44:50 +00:00