From 69986b0d0fbd4a3eb911889a88da490f4aded5c1 Mon Sep 17 00:00:00 2001 From: Brian Candler Date: Wed, 15 Apr 2020 09:46:45 +0100 Subject: [PATCH] Correct typo "Snasphot" --- .../v2/controller/snapshot/projectsprojectidsnapshots.rst | 4 ++-- .../snapshot/projectsprojectidsnapshotssnapshotid.rst | 2 +- .../projectsprojectidsnapshotssnapshotidrestore.rst | 2 +- gns3server/handlers/api/controller/snapshot_handler.py | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api/v2/controller/snapshot/projectsprojectidsnapshots.rst b/docs/api/v2/controller/snapshot/projectsprojectidsnapshots.rst index c37b5788..af3ff793 100644 --- a/docs/api/v2/controller/snapshot/projectsprojectidsnapshots.rst +++ b/docs/api/v2/controller/snapshot/projectsprojectidsnapshots.rst @@ -13,7 +13,7 @@ Parameters Response status codes ********************** -- **201**: Snasphot created +- **201**: Snapshot created - **404**: The project doesn't exist Input @@ -54,7 +54,7 @@ Parameters Response status codes ********************** -- **200**: Snasphot list returned +- **200**: Snapshot list returned - **404**: The project doesn't exist Sample session diff --git a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotid.rst b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotid.rst index bf3a0e59..109cdb74 100644 --- a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotid.rst +++ b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotid.rst @@ -10,7 +10,7 @@ Delete a snapshot from disk Parameters ********** - **project_id**: Project UUID -- **snapshot_id**: Snasphot UUID +- **snapshot_id**: Snapshot UUID Response status codes ********************** diff --git a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst index 82386f82..ae8f6ce8 100644 --- a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst +++ b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst @@ -10,7 +10,7 @@ Restore a snapshot from disk Parameters ********** - **project_id**: Project UUID -- **snapshot_id**: Snasphot UUID +- **snapshot_id**: Snapshot UUID Response status codes ********************** diff --git a/gns3server/handlers/api/controller/snapshot_handler.py b/gns3server/handlers/api/controller/snapshot_handler.py index 513bbe3e..9138fdc8 100644 --- a/gns3server/handlers/api/controller/snapshot_handler.py +++ b/gns3server/handlers/api/controller/snapshot_handler.py @@ -40,7 +40,7 @@ class SnapshotHandler: input=SNAPSHOT_CREATE_SCHEMA, output=SNAPSHOT_OBJECT_SCHEMA, status_codes={ - 201: "Snasphot created", + 201: "Snapshot created", 404: "The project doesn't exist" }) async def create(request, response): @@ -57,7 +57,7 @@ class SnapshotHandler: "project_id": "Project UUID", }, status_codes={ - 200: "Snasphot list returned", + 200: "Snapshot list returned", 404: "The project doesn't exist" }) def list(request, response): @@ -71,7 +71,7 @@ class SnapshotHandler: description="Delete a snapshot from disk", parameters={ "project_id": "Project UUID", - "snapshot_id": "Snasphot UUID" + "snapshot_id": "Snapshot UUID" }, status_codes={ 204: "Changes have been written on disk", @@ -89,7 +89,7 @@ class SnapshotHandler: description="Restore a snapshot from disk", parameters={ "project_id": "Project UUID", - "snapshot_id": "Snasphot UUID" + "snapshot_id": "Snapshot UUID" }, output=PROJECT_OBJECT_SCHEMA, status_codes={