mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
22 lines
574 B
Plaintext
22 lines
574 B
Plaintext
curl -i -X POST 'http://localhost:3080/v2/projects/522bed66-ee06-4434-8be7-91081b782829/snapshots' -d '{"name": "snap1"}'
|
|
|
|
POST /v2/projects/522bed66-ee06-4434-8be7-91081b782829/snapshots HTTP/1.1
|
|
{
|
|
"name": "snap1"
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
CONTENT-LENGTH: 170
|
|
CONTENT-TYPE: application/json
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
|
X-ROUTE: /v2/projects/{project_id}/snapshots
|
|
|
|
{
|
|
"created_at": 1472479063,
|
|
"name": "snap1",
|
|
"project_id": "522bed66-ee06-4434-8be7-91081b782829",
|
|
"snapshot_id": "4e0de424-9aac-4697-b21b-2c8f7ba3021b"
|
|
}
|