Skip to content

docs(openapi): add static openapi docs example#591

Merged
greyli merged 7 commits intoapiflask:mainfrom
ma-pony:main
Jul 24, 2024
Merged

docs(openapi): add static openapi docs example#591
greyli merged 7 commits intoapiflask:mainfrom
ma-pony:main

Conversation

@ma-pony
Copy link
Copy Markdown
Contributor

@ma-pony ma-pony commented Jul 22, 2024

fixes #587

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.
  • Add *Version changed* or *Version added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@ma-pony ma-pony changed the title docs(openapi): add static openapi page example docs(openapi): add static openapi docs example Jul 22, 2024
@greyli
Copy link
Copy Markdown
Member

greyli commented Jul 24, 2024

I fixed the CORS issue by creating a shell script to inject OpenAPI spec directly into index.html.

@greyli greyli merged commit bf7cf1a into apiflask:main Jul 24, 2024
@greyli
Copy link
Copy Markdown
Member

greyli commented Jul 24, 2024

Merged, thanks!

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.

Create docs and example app for serving OpenAPI docs with HTML

2 participants