Skip to content

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

Open
@ronyf

Description

@ronyf

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions