Skip to content

Redirect from a disabled default petstore url #812

@levindev7

Description

@levindev7

I know that to disable the default petstore url, i need to use the property -
"springdoc.swagger-ui.disable-swagger-default-url=true"
but after that, when using the address of the default page localhost:8080/swagger-ui/index.html, I see a page with a message
"No API definition provided.", which is not the best solution for my clients, can I somehow make a redirect from this address or configure getting some HTTP status 4xx ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions