HTTP response header and status code modification

Registered by Haiwei Xu

Since in senlin, object creation is done asynchronously, so the server should return code 202 instead of 200, which means the request is accept.
The http response header should contain resource's url information.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Haiwei Xu
Direction:
Needs approval
Assignee:
Haiwei Xu
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon mitaka-2
Started by
Haiwei Xu
Completed by
Haiwei Xu

Related branches

Sprints

Whiteboard

The APIs which are need to be fixed including:
'create' and 'delete' action.

Gerrit topic: https://review.openstack.org/#q,topic:bp/http-response-modification,n,z

Addressed by: https://review.openstack.org/251669
    Make asynchronous action return 202

Addressed by: https://review.openstack.org/251771
    Fix status code returned from API

Addressed by: https://review.openstack.org/252741
    Make senlin API return correct status code

Gerrit topic: https://review.openstack.org/#q,topic:bug/1522289,n,z

Addressed by: https://review.openstack.org/252786
    Remove HTTPAccept exception raised when update cluster

Gerrit topic: https://review.openstack.org/#q,topic:bug/1522291,n,z

Addressed by: https://review.openstack.org/252787
    Remove HTTPAccept exception from node update API

Gerrit topic: https://review.openstack.org/#q,topic:bug/1522302,n,z

Addressed by: https://review.openstack.org/252825
    Remove HTTPNoContent from cluster delete API

Addressed by: https://review.openstack.org/252851
    Make node delete request return no body

Addressed by: https://review.openstack.org/253318
    Remove HTTPNoContent from profile delete API

Addressed by: https://review.openstack.org/253319
    Remove HTTPNoContent from policy delete API

Addressed by: https://review.openstack.org/253321
    Remove HTTPNoContent from webhook delete API

Addressed by: https://review.openstack.org/253980
    Make cluster-delete retuan a location header

Addressed by: https://review.openstack.org/253984
    Make node-delete return a location header

Addressed by: https://review.openstack.org/254032
    Make nodd-update return a location header and body

Addressed by: https://review.openstack.org/254616
    Make cluster-resize return a location header

Addressed by: https://review.openstack.org/254636
    Make cluster actions API return a location header

Addressed by: https://review.openstack.org/254641
    Make node join/leave return a location header

Addressed by: https://review.openstack.org/255048
    Make node-create return a location header

Addressed by: https://review.openstack.org/255142
    Make webhook-trigger return a location header

Addressed by: https://review.openstack.org/257089
    Update TODO list

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.