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

22 lines
356 B
Plaintext
Raw Normal View History

2015-01-14 00:05:26 +00:00
curl -i -xPOST 'http://localhost:8000/vpcs' -d '{"name": "PC TEST 1"}'
POST /vpcs HTTP/1.1
{
"name": "PC TEST 1"
}
HTTP/1.1 200
CONNECTION: close
2015-01-14 01:26:32 +00:00
CONTENT-LENGTH: 66
2015-01-14 00:05:26 +00:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /vpcs
{
"console": 4242,
"name": "PC TEST 1",
2015-01-14 01:26:32 +00:00
"vpcs_id": 1
2015-01-14 00:05:26 +00:00
}