2015-02-04 03:44:04 +02:00
|
|
|
curl -i -X POST 'http://localhost:8000/vpcs' -d '{"name": "PC TEST 1", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80"}'
|
2015-01-14 02:05:26 +02:00
|
|
|
|
|
|
|
POST /vpcs HTTP/1.1
|
|
|
|
{
|
2015-01-20 19:55:17 +02:00
|
|
|
"name": "PC TEST 1",
|
2015-02-04 03:44:04 +02:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80"
|
2015-01-14 02:05:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 23:33:41 +02:00
|
|
|
HTTP/1.1 201
|
2015-02-04 03:44:04 +02:00
|
|
|
CONNECTION: close
|
|
|
|
CONTENT-LENGTH: 211
|
2015-01-14 02:05:26 +02:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2015-02-04 03:44:04 +02:00
|
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
2015-01-14 02:05:26 +02:00
|
|
|
X-ROUTE: /vpcs
|
|
|
|
|
|
|
|
{
|
2015-01-26 10:36:26 +02:00
|
|
|
"console": 2001,
|
2015-01-14 02:05:26 +02:00
|
|
|
"name": "PC TEST 1",
|
2015-02-04 03:44:04 +02:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
2015-01-20 20:56:18 +02:00
|
|
|
"script_file": null,
|
2015-01-21 17:43:34 +02:00
|
|
|
"startup_script": null,
|
2015-02-04 03:44:04 +02:00
|
|
|
"uuid": "92ff89ed-aed2-487c-b893-5559ca258d0f"
|
2015-01-14 02:05:26 +02:00
|
|
|
}
|