-
Notifications
You must be signed in to change notification settings - Fork 27
REST Locations
andreisavu edited this page May 3, 2012
·
8 revisions
GET /v1/locations
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"provider": "aws-ec2",
"location": "eu-west-1",
"identity": "ADS45345",
"links": {
"self": "/v1/locations/0"
}
},
{
"provider": "localhost",
"location": "localhost",
"identity": "",
"links": {
"self": "/v1/locations/1"
}
}
]
POST /v1/locations
{
"provider": "localhost",
"identity": "",
"credential": "",
"location": "localhost"
}
HTTP/1.1 200 OK
Location: /v1/locations/5
GET /v1/locations/1
HTTP/1.1 200 OK
Content-Type: application/json
{
"provider": "localhost",
"location": "localhost",
"identity": "",
"links": {
"self": "/v1/locations/1"
}
}
DELETE /v1/locations/1
HTTP/1.1 200 OK