1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 09:48:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt

21 lines
735 B
Plaintext
Raw Normal View History

2016-08-15 15:39:08 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore' -d '{}'
2016-07-26 17:57:53 +00:00
2016-08-15 15:39:08 +00:00
POST /v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore HTTP/1.1
2016-07-26 17:57:53 +00:00
{}
HTTP/1.1 201
CONTENT-LENGTH: 255
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/{snapshot_id}/restore
{
"filename": "test.gns3",
"name": "test",
2016-08-15 15:39:08 +00:00
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo86kamvs/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f",
"project_id": "130d7a29-9b49-4688-8cf2-074a0434eb7f",
2016-07-26 17:57:53 +00:00
"status": "opened"
}