1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidduplicate.txt
2016-11-03 18:20:51 +01:00

28 lines
754 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/21717e3a-16a4-4858-be4c-afe4c9c801e9/duplicate' -d '{"name": "hello"}'
POST /v2/projects/21717e3a-16a4-4858-be4c-afe4c9c801e9/duplicate HTTP/1.1
{
"name": "hello"
}
HTTP/1.1 201
Content-Length: 350
Content-Type: application/json
Date: Thu, 03 Nov 2016 17:20:04 GMT
Server: Python/3.5 GNS3/2.0.0dev4
X-Route: /v2/projects/{project_id}/duplicate
{
"auto_close": true,
"auto_open": false,
"auto_start": false,
"filename": "hello.gns3",
"name": "hello",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp468uc8zp/projects/hello",
"project_id": "7b99f0f3-b680-4e45-8281-948122b6196f",
"scene_height": 1000,
"scene_width": 2000,
"status": "closed"
}