Skip to content

Support set the url prefix of the OpenAPI blueprint#64

Merged
greyli merged 2 commits intomasterfrom
openapi-bp-prefix
Jun 13, 2021
Merged

Support set the url prefix of the OpenAPI blueprint#64
greyli merged 2 commits intomasterfrom
openapi-bp-prefix

Conversation

@greyli
Copy link
Copy Markdown
Member

@greyli greyli commented Jun 13, 2021

Example usage:

app = APIFlask(__name__, openapi_blueprint_url_prefix='/api')

Then the spec and docs will be available at /api/openapi.json, /api/docs, etc.

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code docstring.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue and your username.
  • Add *Version Changed* or *Version Added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@greyli greyli changed the title Support setup the url prefix for the OpenAPI blueprint Support set the url prefix of the OpenAPI blueprint Jun 13, 2021
@greyli greyli added this to the 0.7.0 milestone Jun 13, 2021
@greyli greyli merged commit 21cae3e into master Jun 13, 2021
@greyli greyli deleted the openapi-bp-prefix branch June 13, 2021 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant