2015-01-20 17:55:17 +00:00
|
|
|
curl -i -X POST 'http://localhost:8000/vpcs' -d '{"name": "PC TEST 1", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80"}'
|
2015-01-14 00:05:26 +00:00
|
|
|
|
|
|
|
POST /vpcs HTTP/1.1
|
|
|
|
{
|
2015-01-20 17:55:17 +00:00
|
|
|
"name": "PC TEST 1",
|
|
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80"
|
2015-01-14 00:05:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 21:33:41 +00:00
|
|
|
HTTP/1.1 201
|
2015-01-31 21:34:49 +00:00
|
|
|
CONNECTION: close
|
2015-01-21 15:43:34 +00:00
|
|
|
CONTENT-LENGTH: 213
|
2015-01-14 00:05:26 +00:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2015-01-31 21:34:49 +00:00
|
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
2015-01-14 00:05:26 +00:00
|
|
|
X-ROUTE: /vpcs
|
|
|
|
|
|
|
|
{
|
2015-01-26 08:36:26 +00:00
|
|
|
"console": 2001,
|
2015-01-14 00:05:26 +00:00
|
|
|
"name": "PC TEST 1",
|
2015-01-20 17:55:17 +00:00
|
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
2015-01-20 18:56:18 +00:00
|
|
|
"script_file": null,
|
2015-01-21 15:43:34 +00:00
|
|
|
"startup_script": null,
|
2015-02-02 00:22:31 +00:00
|
|
|
"uuid": "b0ed8aae-4d50-4a0c-9d91-0875a5aca533"
|
2015-01-14 00:05:26 +00:00
|
|
|
}
|