-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance home endpoint with dynamic uptime and detailed API over…
…view; update API title and description
- Loading branch information
1 parent
411d0fa
commit 3c9e4ed
Showing
4 changed files
with
161 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,12 @@ | |
# OpenAPI schema view | ||
schema_view = get_schema_view( | ||
openapi.Info( | ||
title="Your API", | ||
title="Metro API", | ||
default_version="v1", | ||
description="API documentation for the Flutter app", | ||
description="API documentation for Metro application", | ||
terms_of_service="https://www.google.com/policies/terms/", | ||
# contact=openapi.Contact(email="[email protected]"), | ||
# license=openapi.License(name="MIT License"), | ||
), | ||
public=True, | ||
permission_classes=(AllowAny,), | ||
|
@@ -53,11 +56,13 @@ | |
path("health/", health_check, name="health_check"), # Health check | ||
|
||
# Documentation | ||
# path( | ||
# "swagger/", | ||
# schema_view.with_ui("swagger", cache_timeout=0), | ||
# name="schema-swagger-ui", | ||
# ), # Swagger UI | ||
path( | ||
"swagger/", | ||
schema_view.with_ui("swagger", cache_timeout=0), | ||
name="schema-swagger-ui", | ||
), # Swagger UI | ||
|
||
# path("redoc/", schema_view.with_ui("redoc", cache_timeout=0), name="schema-redoc"), | ||
] | ||
|
||
# Debug Toolbar (only for development) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters