1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-05 23:59:09 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
Julien Duponchelle 73c31b4b87
Update docs
2017-03-21 13:32:04 +01:00

23 lines
593 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/ca0187d8-c183-49b1-a714-b7160264172b/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/ca0187d8-c183-49b1-a714-b7160264172b/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
Date: Tue, 21 Mar 2017 09:32:04 GMT
Server: Python/3.6 GNS3/2.0.0dev11
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1490088724,
"name": "snap1",
"project_id": "ca0187d8-c183-49b1-a714-b7160264172b",
"snapshot_id": "b5fed8f7-3482-435c-9df0-d25b9afa9cec"
}