Skip to content

Commit

Permalink
add links for swagger UI and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-labri-tipton committed Nov 27, 2023
1 parent 96c09ca commit 3e0a386
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pv_site_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ def is_fake():

folder = os.path.dirname(os.path.abspath(__file__))
description = """
Description of PV Site API
The Quartz Solar PV Site API generates site-specific pv forecasts for users.
This API is built with [FastAPI](https://fastapi.tiangolo.com/), offering
users the options to both try API routes with the [`/swagger`](/swagger) UI
and read documentation with the sleek Redocs layout at [`/docs`](/docs).
"""

origins = os.getenv("ORIGINS", "*").split(",")
Expand Down Expand Up @@ -581,7 +585,7 @@ def custom_openapi():
version=pv_site_api.__version__,
description=description,
contact={
"name": "Nowcasting by Open Climate Fix",
"name": "Quartz Solar by Open Climate Fix",
"url": "https://quartz.solar",
"email": "[email protected]",
},
Expand Down

0 comments on commit 3e0a386

Please sign in to comment.