You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to exclude a route from the OpenAPI spec without using decorators? I found information in the docs about excluding routes, but it did not work:
I also use subdomains and noticed that the Redoc endpoint is available for every subdomain with the default path. Is it possible to reference the Blueprint directly instead of using app.config.OAS_URI_TO_* to set the path?
Ideally something like this (where RedocBlueprint is the blueprint which app.config.OAS_URI_TO_REDOC sends you to):
# Custom route registration because I do not want decoratorsRouteGroup(
subdomain="api",
middleware=[""],
name="API-Information",
#prefix="",routes=[
GET("/docs", RedocBlueprint).name("Redoc"),
]
),
Goals:
Excluding a route from OpenAPI spec in Route definition
Reference Redoc/Swagger function paths directly instead of being available on all subdomains
I believe* this used to work with the old sanic-openapi:
fromsanic_openapiimportopenapi3_blueprint
Is there any way I can disable the spec generation and Blueprint creation done by Sanic-ext, and manually handle this instead so I can register the blueprint and set a path to it myself?
The text was updated successfully, but these errors were encountered:
Is it possible to exclude a route from the OpenAPI spec without using decorators? I found information in the docs about excluding routes, but it did not work:
I also use subdomains and noticed that the Redoc endpoint is available for every subdomain with the default path. Is it possible to reference the Blueprint directly instead of using
app.config.OAS_URI_TO_*
to set the path?Ideally something like this (where RedocBlueprint is the blueprint which
app.config.OAS_URI_TO_REDOC
sends you to):Goals:
I believe* this used to work with the old sanic-openapi:
Is there any way I can disable the spec generation and Blueprint creation done by Sanic-ext, and manually handle this instead so I can register the blueprint and set a path to it myself?
The text was updated successfully, but these errors were encountered: