Skip to content

Commit

Permalink
chore: add all 'servers' in openapi schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Oct 27, 2024
1 parent b0f54a8 commit 007009f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import src.api.logging_ # noqa: F401
from src.api import docs
from src.api.docs import generate_unique_operation_id
from src.api.lifespan import lifespan
from src.config import api_settings

Expand All @@ -18,10 +17,18 @@
openapi_tags=docs.TAGS_INFO,
servers=[
{"url": api_settings.app_root_path, "description": "Current"},
{
"url": "https://api.innohassle.ru/music-room/v0",
"description": "Production environment",
},
{
"url": "https://api.innohassle.ru/music-room/staging-v0",
"description": "Staging environment",
},
],
root_path=api_settings.app_root_path,
root_path_in_servers=False,
generate_unique_id_function=generate_unique_operation_id,
generate_unique_id_function=docs.generate_unique_operation_id,
lifespan=lifespan,
docs_url=None,
redoc_url=None,
Expand Down

0 comments on commit 007009f

Please sign in to comment.