Skip to content

Swagger UI - Aggregate external endpoints using springdoc.swagger-ui.urls.* is not working #1366

@asakchris

Description

@asakchris

Describe the bug
I was trying to aggregate external endpoints in one single swagger UI application by following this documentation, but it is not working.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using?
    2.6.0
  • What modules and versions of springdoc-openapi are you using?
    org.springdoc:springdoc-openapi-ui:1.5.13
  • Provide with a sample code (HelloController) or Test that reproduces the problem
    Refer this sample application in github.
    Using below properties to configure external API, but it is still showing Explore search bar:
springdoc.swagger-ui.urls[0].name=Pet Store
springdoc.swagger-ui.urls[0].url=https://petstore.swagger.io/v2/swagger.json
springdoc.swagger-ui.urls[1].name=Weather
springdoc.swagger-ui.urls[1].url=https://idratherbewriting.com/learnapidoc/docs/openapi_spec_and_generated_ref_docs/openapi_openweathermap.yml

Expected behavior
The properties springdoc.swagger-ui.urls.* has no effect, it is still showing Explore search bar. The top bar should show the Select a definition combo with Pet Store and Weather as values.

Screenshots
Swagger UI still shows Explore search bar, refer below screen shot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions