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

Multiple swagger docs #22

Open
notzippy opened this issue Mar 3, 2021 · 1 comment
Open

Multiple swagger docs #22

notzippy opened this issue Mar 3, 2021 · 1 comment

Comments

@notzippy
Copy link

notzippy commented Mar 3, 2021

Is it possible with the current release (0.5.5) to support multiple swagger endpoints? I tried to register an two Api instances and it failed on the second, with a sanic.router.RouteExists: Route already registered: /swaggerui<file_uri:/?.+> [HEAD,GET] I noticed on issue #6 you had mentioned using blueprints was disabled but that does appear that the only way you can enable multiple Api documents in the restplus plugin for flask. Is there another way?

thanks

@ashleysommer
Copy link
Owner

Hi @notzippy sorry for the delayed response, I didn't see this issue come through.

You're right, its not possible in Sanic-restplus to register more than one Api object right now, and I agree it should be possible.

There is a new extension called sanic-ext being developed by the sanic team that will be OpenAPI-3 compliant and will be much easier to use than this dodgy old restplus port. So Sanic-Restplus is essentially on maintenance mode now, until that comes out.

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

No branches or pull requests

2 participants