OSAPI v1.1 Versioned Content Types
Bug #844905 reported by
Brian Waldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Johannes Erdfelt |
Bug Description
The spec allows us to specify the api version in a content type rather than the url:
http://
Content-Type: application/xml; version=1.1
Related branches
lp://staging/~johannes.erdfelt/nova/lp844905
Rejected
for merging
into
lp://staging/~hudson-openstack/nova/trunk
- Brian Waldon (community): Approve
- Paul Voccio (community): Abstain
-
Diff: 827 lines (+522/-81)7 files modifiedetc/nova/api-paste.ini (+1/-1)
nova/api/openstack/urlmap.py (+297/-0)
nova/api/openstack/versions.py (+6/-27)
nova/api/openstack/wsgi.py (+24/-28)
nova/tests/api/openstack/fakes.py (+1/-1)
nova/tests/api/openstack/test_urlmap.py (+111/-0)
nova/tests/api/openstack/test_versions.py (+82/-24)
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | nobody → Johannes Erdfelt (johannes.erdfelt) |
status: | Triaged → In Progress |
Changed in nova: | |
milestone: | none → essex-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/656 github. com/openstack/ nova/commit/ 6e5f2d88e630540 b0ab121cd994928 9d2fc0cd67
Committed: http://
Submitter: Jenkins
Branch: master
status fixcommitted
done
commit 6e5f2d88e630540 b0ab121cd994928 9d2fc0cd67
Author: Johannes Erdfelt <email address hidden>
Date: Sun Sep 25 22:51:55 2011 +0000
Add support for header version parameter to specify API version.
bug 844905
The 1.1 API specifies that the API version can be determined by URL path servers/ detail) , Content-Type header json;version= 1.1) or Accept header json;q= 0.8;version= 1.1, application/ xml;q=0. 2;version= 1.1).
(eg /v1.1/tenant/
(eg application/
(eg application/
Change-Id: I01220cf1eebc0f 759d66563ec67ef 2f697c6d310