2015-01-20 22:40:03 +00:00
|
|
|
curl -i -X POST 'http://localhost:8000/virtualbox' -d '{"name": "VM1", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "vmname": "VM1"}'
|
|
|
|
|
|
|
|
POST /virtualbox HTTP/1.1
|
|
|
|
{
|
|
|
|
"name": "VM1",
|
|
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
|
|
"vmname": "VM1"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 21:33:41 +00:00
|
|
|
HTTP/1.1 201
|
2015-01-20 22:40:03 +00:00
|
|
|
CONNECTION: close
|
|
|
|
CONTENT-LENGTH: 133
|
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
|
|
|
X-ROUTE: /virtualbox
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "VM1",
|
|
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
2015-01-21 21:33:41 +00:00
|
|
|
"uuid": "0f7b32bb-13e1-4c3f-8176-bbf277672b58"
|
2015-01-20 22:40:03 +00:00
|
|
|
}
|