mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
improve api docs
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
"""Configuration for API docs feature."""
|
||||
# Third Party Imports
|
||||
from pydantic import StrictBool
|
||||
from pydantic import StrictStr
|
||||
from pydantic import constr
|
||||
|
||||
# Project Imports
|
||||
@@ -13,3 +15,6 @@ class Docs(HyperglassModel):
|
||||
enable: StrictBool = True
|
||||
mode: constr(regex=r"(swagger|redoc)") = "swagger"
|
||||
uri: AnyUri = "/docs"
|
||||
endpoint_summary: StrictStr = "Query Endpoint"
|
||||
endpoint_description: StrictStr = "Request a query response per-location."
|
||||
group_title: StrictStr = "Queries"
|
||||
|
Reference in New Issue
Block a user