1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-18 06:18:08 +00:00
gns3-server/docs/api/examples/post_vpcs.txt
2015-01-13 18:26:32 -07:00

22 lines
356 B
Plaintext

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
CONTENT-LENGTH: 66
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",
"vpcs_id": 1
}