Revision 32e4e343 snf-cyclades-app/synnefo/api/versions.py

b/snf-cyclades-app/synnefo/api/versions.py
33 33

  
34 34
from logging import getLogger
35 35

  
36
from django.conf import settings
37 36
from django.http import HttpResponse
38 37
from django.template.loader import render_to_string
39 38
from django.utils import simplejson as json
......
46 45

  
47 46

  
48 47
VERSION_2_0 = {
49
    "id" : "v2.0",
50
    "status" : "CURRENT",
51
    "updated" : "2011-01-21T11:33:21-06:00",
48
    "id": "v2.0",
49
    "status": "CURRENT",
50
    "updated": "2011-01-21T11:33:21-06:00",
52 51
    "links": [
53 52
        {
54
            "rel" : "self",
55
            "href" : COMPUTE_ROOT_URL,
53
            "rel": "self",
54
            "href": COMPUTE_ROOT_URL,
56 55
        },
57 56
    ],
58 57
}
......
61 60

  
62 61
MEDIA_TYPES = [
63 62
    {
64
        "base" : "application/xml",
65
        "type" : "application/vnd.openstack.compute.v2+xml"
63
        "base": "application/xml",
64
        "type": "application/vnd.openstack.compute.v2+xml"
66 65
    },
67 66
    {
68
        "base" : "application/json",
69
        "type" : "application/vnd.openstack.compute.v2+json"
67
        "base": "application/json",
68
        "type": "application/vnd.openstack.compute.v2+json"
70 69
    }
71 70
]
72 71

  
73 72
DESCRIBED_BY = [
74 73
    {
75
        "rel" : "describedby",
76
        "type" : "application/pdf",
77
        "href" : "http://docs.rackspacecloud.com/servers/api/v2/cs-devguide-20110125.pdf"
74
        "rel": "describedby",
75
        "type": "application/pdf",
76
        "href": "http://docs.rackspacecloud.com/servers/api/v2/"
77
                "cs-devguide-20110125.pdf"
78 78
    },
79 79
    {
80
        "rel" : "describedby",
81
        "type" : "application/vnd.sun.wadl+xml",
82
        "href" : "http://docs.rackspacecloud.com/servers/api/v2/application.wadl"
80
        "rel": "describedby",
81
        "type": "application/vnd.sun.wadl+xml",
82
        "href": "http://docs.rackspacecloud.com/servers/api/v2/"
83
                "application.wadl"
83 84
    }
84 85
]
85 86

  

Also available in: Unified diff