2015-02-03 18:44:04 -07:00
|
|
|
curl -i -X POST 'http://localhost:8000/vpcs' -d '{"name": "PC TEST 1", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80"}'
|
2015-01-13 17:05:26 -07:00
|
|
|
|
|
|
|
POST /vpcs HTTP/1.1
|
|
|
|
{
|
2015-01-20 18:55:17 +01:00
|
|
|
"name": "PC TEST 1",
|
2015-02-03 18:44:04 -07:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80"
|
2015-01-13 17:05:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-21 22:33:41 +01:00
|
|
|
HTTP/1.1 201
|
2015-02-04 10:31:31 +01:00
|
|
|
CONNECTION: keep-alive
|
2015-02-03 18:44:04 -07:00
|
|
|
CONTENT-LENGTH: 211
|
2015-01-13 17:05:26 -07:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2015-02-04 10:31:31 +01:00
|
|
|
SERVER: Python/3.4 GNS3/1.3.dev1
|
|
|
|
X-ROUTE: /v1/vpcs
|
2015-01-13 17:05:26 -07:00
|
|
|
|
|
|
|
{
|
2015-01-26 09:36:26 +01:00
|
|
|
"console": 2001,
|
2015-01-13 17:05:26 -07:00
|
|
|
"name": "PC TEST 1",
|
2015-02-03 18:44:04 -07:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
2015-01-20 19:56:18 +01:00
|
|
|
"script_file": null,
|
2015-01-21 16:43:34 +01:00
|
|
|
"startup_script": null,
|
2015-02-04 10:31:31 +01:00
|
|
|
"uuid": "d7a9ef38-2863-4cf2-97ce-dcf8416a93ae"
|
2015-01-13 17:05:26 -07:00
|
|
|
}
|