Commit Graph

8 Commits

Author SHA1 Message Date
Andreas Jaeger e88f6b747a Retire craton
Remove everything, add a README with explanation.

Change-Id: I7c8fcfac0d904f144b6a3838d25db0987d1e74a5
2018-01-18 15:22:28 +01:00
lidong 584f0551fa Fix a typo
Change-Id: Ia66f2c4501686d8bf7e2b09e17fd77046e212078
2017-03-15 23:03:26 -07:00
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
sulochan acharya 60746ced02 Rename /data endpoint to /variables
- renaming data to variables so that we have
consistent naming across the code base.

Change-Id: I32e3322aa6cd6bfe9eae902242e8b5c55dd3d328
2016-11-18 14:54:11 +00:00
Jovon McCloud 4ff2d6cf04 Remove swagger-inventory-api.yaml
This patch removes the swagger directory and its contents
because it is no longer used by craton

Change-Id: I9e1f1c1c2b962db44ad87ab499c09df149c0c2e2
Closes-bug: #1625744
2016-10-03 19:32:22 +00:00
Jovon McCloud 6d8ea915eb Implements API documentation
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
2016-09-09 19:31:03 +00:00
Eddie Ramirez 05c190a641 Renamed Region model property
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
2016-08-25 21:02:49 +00:00
Sulochan Acharya 7de8c41345 Changes project layout
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
2016-08-15 18:31:58 +01:00