mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-28 00:28:54 +00:00
0f496907a0
Fix issues with test. Update documentation.
23 lines
592 B
Plaintext
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"
|
|
}
|