~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/api/openstack/versions.py

  • Committer: Tarmac
  • Author(s): Johannes Erdfelt
  • Date: 2011-09-15 13:32:24 UTC
  • mfrom: (1544.1.17 lp844910)
  • mto: This revision was merged to the branch mainline in revision 1574.
  • Revision ID: tarmac-20110915133224-fw4uq6x4sdo41x9s
The 1.1 API specifies that two vendor content types are allowed in addition to the standard JSON and XML content types.

This branch adds support for application/vnd.openstack.compute+json and application/vnd.openstack.compute+xml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
            headers_serializer=headers_serializer)
108
108
 
109
109
        supported_content_types = ('application/json',
 
110
                                   'application/vnd.openstack.compute+json',
110
111
                                   'application/xml',
 
112
                                   'application/vnd.openstack.compute+xml',
111
113
                                   'application/atom+xml')
112
114
        deserializer = VersionsRequestDeserializer(
113
115
            supported_content_types=supported_content_types)
308
310
    serializer = wsgi.ResponseSerializer(body_serializers)
309
311
 
310
312
    supported_content_types = ('application/json',
 
313
                               'application/vnd.openstack.compute+json',
311
314
                               'application/xml',
 
315
                               'application/vnd.openstack.compute+xml',
312
316
                               'application/atom+xml')
313
317
    deserializer = wsgi.RequestDeserializer(
314
318
        supported_content_types=supported_content_types)