From e7c49e7e25213e45f81ea740f6e2a308423f884b Mon Sep 17 00:00:00 2001 From: cerc Date: Thu, 30 Mar 2023 12:45:46 -0400 Subject: [PATCH] specific changes for the servert --- bootstrap.py | 8 ++++---- hub_api/docs/openapi-specs.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bootstrap.py b/bootstrap.py index 69cb58f..0f76445 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -40,14 +40,14 @@ with open("hub_api/docs/openapi-specs.yml", "r") as stream: "headers": [], "specs": [ { - "endpoint": 'apispec', - "route": '/v1.4/apispec.json', + "endpoint": '/api/apispec/', + "route": '/api/apispec/apispec.json', "rule_filter": lambda rule: True, # all in "model_filter": lambda tag: True, # all in } ], - "static_url_path": "/api/v1.4/static", - "specs_route": "/v1.4/api-docs/", + "static_url_path": "/api/static/", + "specs_route": "/api/api-docs/", "openapi": "3.0.0" } try: diff --git a/hub_api/docs/openapi-specs.yml b/hub_api/docs/openapi-specs.yml index 5b85ba7..a6facbc 100644 --- a/hub_api/docs/openapi-specs.yml +++ b/hub_api/docs/openapi-specs.yml @@ -9,7 +9,7 @@ externalDocs: description: Find out more about Swagger url: http://swagger.io paths: - /v1.4/uptime: + /api/v1.4/uptime: get: parameters: [] @@ -25,7 +25,7 @@ paths: application/json: schema: $ref: '#/components/schemas/uptime' - /v1.4/session/start: + /api/v1.4/session/start: put: parameters: - in: header @@ -75,7 +75,7 @@ paths: application/json: schema: $ref: '#/components/schemas/unauthorized' - /v1.4/session/keep_alive: + /api/v1.4/session/keep_alive: put: security: - session_id: [] @@ -107,7 +107,7 @@ paths: application/json: schema: $ref: '#/components/schemas/unauthorized' - /v1.4/session/end: + /api/v1.4/session/end: put: security: - session_id: [] @@ -139,7 +139,7 @@ paths: application/json: schema: $ref: '#/components/schemas/unauthorized' - /v1.4/buildings/meb: + /api/v1.4/buildings/meb: post: security: - session_id: [ ] @@ -331,4 +331,4 @@ components: } ] } - }' \ No newline at end of file + }'