mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Get project
This commit is contained in:
1 parent
0e76527ce2
commit
547adf0dc6
2 files changed
+31
No files matched your search
@@ -39,6 +39,24 @@ class ProjectHandler:
|
||||
)
|
||||
response.json(p)
|
||||
|
||||
@classmethod
|
||||
@Route.get(
|
||||
r"/project/{uuid}",
|
||||
description="Get project informations",
|
||||
parameters={
|
||||
"uuid": "Project instance UUID",
|
||||
},
|
||||
status_codes={
|
||||
200: "OK",
|
||||
404: "Project instance doesn't exist"
|
||||
},
|
||||
output=PROJECT_OBJECT_SCHEMA)
|
||||
def show(request, response):
|
||||
|
||||
pm = ProjectManager.instance()
|
||||
project = pm.get_project(request.match_info["uuid"])
|
||||
response.json(project)
|
||||
|
||||
@classmethod
|
||||
@Route.put(
|
||||
r"/project/{uuid}",
|
||||
|
||||
Reference in new issue
Block a user