aodh/doc/source/contributor/webapi/index.rst
Yuanbin.Chen 86117fd98c Fix doc title format error
Change-Id: Iafe03c967ca7b3e39d532f434b2f21fb43fa0d29
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-04-09 13:24:01 +08:00

1.3 KiB

Web API

v2

You can get API version list via request to endpoint root path. For example:

curl -H "X-AUTH-TOKEN: fa2ec18631f94039a5b9a8b4fe8f56ad" http://127.0.0.1:8042

Sample response:

{
    "versions": {
        "values": [
            {
                "id": "v2",
                "links": [
                    {
                        "href": "http://127.0.0.1:8042/v2",
                        "rel": "self"
                    },
                    {
                        "href": "https://docs.openstack.org/",
                        "rel": "describedby",
                        "type": "text/html"
                    }
                ],
                "media-types": [
                    {
                        "base": "application/json",
                        "type": "application/vnd.openstack.telemetry-v2+json"
                    },
                    {
                        "base": "application/xml",
                        "type": "application/vnd.openstack.telemetry-v2+xml"
                    }
                ],
                "status": "stable",
                "updated": "2013-02-13T00:00:00Z"
            }
        ]
    }
}