1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 17:58:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt

22 lines
574 B
Plaintext
Raw Normal View History

2016-11-03 17:20:51 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/4f486b95-604e-43ea-9b44-d6db866aa331/snapshots' -d '{"name": "snap1"}'
2016-07-26 17:57:53 +00:00
2016-11-03 17:20:51 +00:00
POST /v2/projects/4f486b95-604e-43ea-9b44-d6db866aa331/snapshots HTTP/1.1
2016-07-26 17:57:53 +00:00
{
"name": "snap1"
}
HTTP/1.1 201
2016-09-27 15:15:40 +00:00
Content-Length: 170
Content-Type: application/json
2016-11-03 17:20:51 +00:00
Date: Thu, 03 Nov 2016 17:20:04 GMT
Server: Python/3.5 GNS3/2.0.0dev4
2016-09-27 15:15:40 +00:00
X-Route: /v2/projects/{project_id}/snapshots
2016-07-26 17:57:53 +00:00
{
2016-11-03 17:20:51 +00:00
"created_at": 1478193604,
2016-07-26 17:57:53 +00:00
"name": "snap1",
2016-11-03 17:20:51 +00:00
"project_id": "4f486b95-604e-43ea-9b44-d6db866aa331",
"snapshot_id": "9ff3332f-5388-4946-80a7-b81334f6f321"
2016-07-26 17:57:53 +00:00
}