Last active
December 17, 2015 19:49
-
-
Save mtaylor/5663143 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET / Returns an API Resource | |
{ | |
"type": "api", | |
"name": "openstack ironic API", | |
"description": "foobar", | |
"versions": { | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/api/versions/" | |
}, | |
{ | |
"rel": "bookmark", | |
"href": "http://localhost:8080/api/versions" | |
} | |
] | |
}, | |
"default_version": { | |
"id": "1.0", | |
"type": "version", | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/api/versions/1.0/" | |
}, | |
{ | |
"rel": "bookmark", | |
"href": "http://localhost:8080/api/versions/1.0/" | |
} | |
] | |
} | |
} | |
// GEt /versions/1 | |
{ | |
"id": "1.0", | |
"type": "version", | |
"media-types": [ | |
{ | |
"base": "application/json", | |
"type": "application/vnd.openstack.ironic.v1+json" | |
} | |
], | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/v1/" | |
}, | |
{ | |
"rel": "describedby", | |
"type": "application/pdf", | |
"href": "http://docs.openstack.ironic.com/api/v1.pdf" | |
}, | |
{ | |
"rel": "describedby", | |
"type": "application/vnd.sun.wadl+xml", | |
"href": "http://docs.openstack.ironic.com/api/v1/application.wadl" | |
} | |
], | |
"chassis": { | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/v1.0/chassis/1" | |
}, | |
{ | |
"rel": "bookmark", | |
"href": "http://localhost:8080/chassis/1" | |
} | |
] | |
}, | |
"ports": { | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/v1.0/ports/1" | |
}, | |
{ | |
"rel": "bookmark", | |
"href": "http://localhost:8080/ports/1" | |
} | |
] | |
}, | |
"drivers": { | |
"links": [ | |
{ | |
"rel": "self", | |
"href": "http://localhost:8080/v1.0/drivers/1" | |
}, | |
{ | |
"rel": "bookmark", | |
"href": "http://localhost:8080/drivers/1" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment