Skip to content

Customize Servers via application.yml #2948

Closed
@huehnerlady

Description

@huehnerlady

Is your feature request related to a problem? Please describe.

I would like to change the server URL
For that I found the ServerBaseUrlCustomizer mentiones here
This does not change the description though.

{
  "servers": [
    {
      "url": "https://my-property.test",
      "description": "Generated server url"
    }
  ]
}

Describe the solution you'd like

I would like to have a application.yml property to be able to change the url including the description:

springdoc:
  api-docs:
    enabled: true
  swagger-ui:
    enabled: false
  servers: <--
    server1:
        url: https://my-property.test
        description: "my description"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions