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

[Question] Import existing spec file swagger.json to Flask Restplus #797

Open
ronyf opened this issue Jun 14, 2020 · 0 comments
Open

[Question] Import existing spec file swagger.json to Flask Restplus #797

ronyf opened this issue Jun 14, 2020 · 0 comments

Comments

@ronyf
Copy link

ronyf commented Jun 14, 2020

I have been using Flask restful and now I'm upgrading my resources to Flask restplus.

Some of my resources have the necessary code so they are included in the documentation that's auto-generated by my flask code.

Most of the other resources, are not in-line with the new code and don't have the needed code to be included in the swagger documentation.

I have a swagger.json with all of the old resources' documentation and I want to include it to the auto-generated swagger.json file.

How can I merge the two swagger specification files? I'm fine with changing my endpoints so that the old endpoints will be prefixed with some /old/... and the new ones will be prefixed with /new/..., if it helps with loading the two specifications.

The most important thing is that I want to see them both in the same swagger html.

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

No branches or pull requests

1 participant