1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-18 06:18:08 +00:00

Merge pull request #1741 from candlerb/candlerb/snasphot

Correct typo "Snasphot"
This commit is contained in:
Jeremy Grossmann 2020-04-15 02:53:01 -07:00 committed by GitHub
commit a2d57f7c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -13,7 +13,7 @@ Parameters
Response status codes Response status codes
********************** **********************
- **201**: Snasphot created - **201**: Snapshot created
- **404**: The project doesn't exist - **404**: The project doesn't exist
Input Input
@ -54,7 +54,7 @@ Parameters
Response status codes Response status codes
********************** **********************
- **200**: Snasphot list returned - **200**: Snapshot list returned
- **404**: The project doesn't exist - **404**: The project doesn't exist
Sample session Sample session

View File

@ -10,7 +10,7 @@ Delete a snapshot from disk
Parameters Parameters
********** **********
- **project_id**: Project UUID - **project_id**: Project UUID
- **snapshot_id**: Snasphot UUID - **snapshot_id**: Snapshot UUID
Response status codes Response status codes
********************** **********************

View File

@ -10,7 +10,7 @@ Restore a snapshot from disk
Parameters Parameters
********** **********
- **project_id**: Project UUID - **project_id**: Project UUID
- **snapshot_id**: Snasphot UUID - **snapshot_id**: Snapshot UUID
Response status codes Response status codes
********************** **********************

View File

@ -40,7 +40,7 @@ class SnapshotHandler:
input=SNAPSHOT_CREATE_SCHEMA, input=SNAPSHOT_CREATE_SCHEMA,
output=SNAPSHOT_OBJECT_SCHEMA, output=SNAPSHOT_OBJECT_SCHEMA,
status_codes={ status_codes={
201: "Snasphot created", 201: "Snapshot created",
404: "The project doesn't exist" 404: "The project doesn't exist"
}) })
async def create(request, response): async def create(request, response):
@ -57,7 +57,7 @@ class SnapshotHandler:
"project_id": "Project UUID", "project_id": "Project UUID",
}, },
status_codes={ status_codes={
200: "Snasphot list returned", 200: "Snapshot list returned",
404: "The project doesn't exist" 404: "The project doesn't exist"
}) })
def list(request, response): def list(request, response):
@ -71,7 +71,7 @@ class SnapshotHandler:
description="Delete a snapshot from disk", description="Delete a snapshot from disk",
parameters={ parameters={
"project_id": "Project UUID", "project_id": "Project UUID",
"snapshot_id": "Snasphot UUID" "snapshot_id": "Snapshot UUID"
}, },
status_codes={ status_codes={
204: "Changes have been written on disk", 204: "Changes have been written on disk",
@ -89,7 +89,7 @@ class SnapshotHandler:
description="Restore a snapshot from disk", description="Restore a snapshot from disk",
parameters={ parameters={
"project_id": "Project UUID", "project_id": "Project UUID",
"snapshot_id": "Snasphot UUID" "snapshot_id": "Snapshot UUID"
}, },
output=PROJECT_OBJECT_SCHEMA, output=PROJECT_OBJECT_SCHEMA,
status_codes={ status_codes={