gns3-server/docs/api/examples/post_vpcs.txt

26 lines
625 B
Plaintext
Raw Normal View History

2015-01-20 18:55:17 +01:00
curl -i -X POST 'http://localhost:8000/vpcs' -d '{"name": "PC TEST 1", "project_uuid": "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",
"project_uuid": "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-03 21:27:15 +01:00
CONNECTION: keep-alive
2015-01-21 16:43:34 +01:00
CONTENT-LENGTH: 213
2015-01-13 17:05:26 -07:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
2015-02-03 21:27:15 +01:00
SERVER: Python/3.4 GNS3/1.3.dev1
2015-01-13 17:05:26 -07:00
X-ROUTE: /vpcs
{
2015-01-26 09:36:26 +01:00
"console": 2001,
2015-01-13 17:05:26 -07:00
"name": "PC TEST 1",
2015-01-20 18:55:17 +01:00
"project_uuid": "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-03 21:27:15 +01:00
"uuid": "896e7bbd-936c-4a6f-9268-c89f8eb91f5e"
2015-01-13 17:05:26 -07:00
}