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

Implemented the SwaggerUI urls config parameter which displays a specs dropdown #473

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

jvpernis
Copy link
Contributor

When the urls parameter is specified in the SwaggerUI config, a dropdown of API specs is displayed instead of an editable textbox. This can greatly help organize the multiple specs in a project, as suggested in this StackOverflow answer.

This behavior is currently triggered by simply adding a name parameter to the specs object, e.g.:

{
    "specs": [
        {
            "version": "0.0.1",
            "title": "Api v1",
            "name": "v1",
            "endpoint": "v1_spec",
            "description": "This is the version 1 of our API"
        }
    ]
}

When this parameter is not included in the specs object, the editable textbox is displayed as usual. It might be more intuitive to have this behavior triggered by an external flag or something, but I'm not sure how this interface would look like.

Let me know if you have any ideas for this!

…down of API specs instead of an editable textbox
@billyrrr billyrrr merged commit b99b5d4 into flasgger:master Oct 8, 2021
@deepak18
Copy link

@rochacbruno Do you plan to have a new release for the flasgger package anytime soon? Seems like it's been over a year since the last one and there have been some good features merged.

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.

None yet

3 participants