mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-28 01:38:08 +00:00
23 lines
592 B
Plaintext
23 lines
592 B
Plaintext
curl -i -X POST 'http://localhost:3080/v2/projects/f7b4e81b-00cf-4e92-a783-f7a9ad71d225/snapshots' -d '{"name": "snap1"}'
|
|
|
|
POST /v2/projects/f7b4e81b-00cf-4e92-a783-f7a9ad71d225/snapshots HTTP/1.1
|
|
{
|
|
"name": "snap1"
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
Connection: close
|
|
Content-Length: 170
|
|
Content-Type: application/json
|
|
Date: Thu, 29 Jun 2017 15:08:09 GMT
|
|
Server: Python/3.6 GNS3/2.1.0dev1
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
|
|
|
{
|
|
"created_at": 1498748890,
|
|
"name": "snap1",
|
|
"project_id": "f7b4e81b-00cf-4e92-a783-f7a9ad71d225",
|
|
"snapshot_id": "f87df065-9340-4421-b67d-f1ecd81258b4"
|
|
}
|