Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Middleware to provide SwaggerUI OpenAPI endpoint #2494

Closed
987Nabil opened this issue Oct 24, 2023 · 0 comments
Closed

Create Middleware to provide SwaggerUI OpenAPI endpoint #2494

987Nabil opened this issue Oct 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@987Nabil
Copy link
Contributor

A middleware should be added, that creates an endpoint that returns an html document that renders a given OpenAPI instance.
We should not add any library dependencies for that, but rather use unpkg.
We can give a default value for the swagger ui version, but should make it configurable.
API for the middleware should look somewhat like this

def swaggerUI(api: OpenAPI, path: String, version: String = "4.5.0")

This is blocked by #2470

@987Nabil 987Nabil added the enhancement New feature or request label Oct 24, 2023
987Nabil added a commit to 987Nabil/zio-http that referenced this issue Dec 13, 2023
987Nabil added a commit that referenced this issue Dec 13, 2023
* Html template script rendering fix (#2521)

* SwaggerUI utility for creating routes that serve openapi (#2494)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant