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
This patch removes the swagger directory and its contents
because it is no longer used by craton
Change-Id: I9e1f1c1c2b962db44ad87ab499c09df149c0c2e2
Closes-bug: #1625744
This patch includes API documentation for the craton service:
calls for region, cell, and host as well as their respective
parameters file.
Change-Id: I6414a6c2a48a1a05e54bfb5ad8c743c541286747
Closes-bug: 1606865
YAML file that describes the API has an invalid property in the
Region model.
Should be project_id instead of region_uuid
Change-Id: I972af9e5fb6fc5e841c77d0dadfaaaedd3273314
Changing project layout so that we have the same
dir structure for both inventory and workflow APIs.
This is so that workflow can use the same db models
as inventory.
Change-Id: I17896ccd76209f726b7197e1db1a3b513b7c2f5e