blazar/blazar/api/v1
Tetsuro Nakamura 9da871ac59 Fix POST and PUT status codes and update API Reference
Blazar returned 202 (Accepted) for POST and PUT methods. However, the
POST method should return 201 (Created) because Blazar ensures that a
new host or a new lease is created before responding. Similarly, the PUT
method should return 200 (OK) since Blazar ensures that the resource is
updated properly.

This patch also fixes the status code documented in the API Reference
for DELETE requests, which was wrongly described as 200 (OK) instead of
204 (No Content). The release note is submitted in a separate patch.

Change-Id: Ia5afd12552e4c9169ebe35324d5a5b4495359b63
2018-07-18 00:43:26 +00:00
..
oshosts Register and document policy in code 2018-06-11 17:36:13 +09:00
__init__.py Migrate climate namespace to blazar 2017-03-02 09:36:14 +00:00
app.py Register error response handlers with register_error_handler() 2018-06-26 09:52:54 +00:00
service.py Register and document policy in code 2018-06-11 17:36:13 +09:00
utils.py Fix POST and PUT status codes and update API Reference 2018-07-18 00:43:26 +00:00
v1_0.py Support updating capacity of reservations 2017-08-22 09:02:56 +00:00
validation.py Replace six.iteritems() with .items() 2017-04-05 19:51:51 +08:00