specific changes for the servert

This commit is contained in:
cerc 2023-03-30 12:45:46 -04:00
parent 5fc9678f14
commit e7c49e7e25
2 changed files with 10 additions and 10 deletions

View File

@ -40,14 +40,14 @@ with open("hub_api/docs/openapi-specs.yml", "r") as stream:
"headers": [], "headers": [],
"specs": [ "specs": [
{ {
"endpoint": 'apispec', "endpoint": '/api/apispec/',
"route": '/v1.4/apispec.json', "route": '/api/apispec/apispec.json',
"rule_filter": lambda rule: True, # all in "rule_filter": lambda rule: True, # all in
"model_filter": lambda tag: True, # all in "model_filter": lambda tag: True, # all in
} }
], ],
"static_url_path": "/api/v1.4/static", "static_url_path": "/api/static/",
"specs_route": "/v1.4/api-docs/", "specs_route": "/api/api-docs/",
"openapi": "3.0.0" "openapi": "3.0.0"
} }
try: try:

View File

@ -9,7 +9,7 @@ externalDocs:
description: Find out more about Swagger description: Find out more about Swagger
url: http://swagger.io url: http://swagger.io
paths: paths:
/v1.4/uptime: /api/v1.4/uptime:
get: get:
parameters: parameters:
[] []
@ -25,7 +25,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/uptime' $ref: '#/components/schemas/uptime'
/v1.4/session/start: /api/v1.4/session/start:
put: put:
parameters: parameters:
- in: header - in: header
@ -75,7 +75,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/unauthorized' $ref: '#/components/schemas/unauthorized'
/v1.4/session/keep_alive: /api/v1.4/session/keep_alive:
put: put:
security: security:
- session_id: [] - session_id: []
@ -107,7 +107,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/unauthorized' $ref: '#/components/schemas/unauthorized'
/v1.4/session/end: /api/v1.4/session/end:
put: put:
security: security:
- session_id: [] - session_id: []
@ -139,7 +139,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/unauthorized' $ref: '#/components/schemas/unauthorized'
/v1.4/buildings/meb: /api/v1.4/buildings/meb:
post: post:
security: security:
- session_id: [ ] - session_id: [ ]