1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-17 22:08:35 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
grossmj 0f496907a0 Fix API status code for start/stop/suspend/reload a node. Fixes #1353.
Fix issues with test.
Update documentation.
2018-06-14 16:39:32 +08:00

23 lines
592 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/8ad8d8bd-8179-4f60-8a59-e3031882b864/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/8ad8d8bd-8179-4f60-8a59-e3031882b864/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
Date: Thu, 14 Jun 2018 08:35:21 GMT
Server: Python/3.5 GNS3/2.1.8dev1
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1528965321,
"name": "snap1",
"project_id": "8ad8d8bd-8179-4f60-8a59-e3031882b864",
"snapshot_id": "2494bd41-220d-452b-929d-d3d53be75f3d"
}