2

as the title suggests, is there a way to change a swagger url of the type

localhost:8080/myapp/swagger.ui.html

into a url

localhost:8080/docs

I use OpenApi3 and so far in the documentation I don't know how to change the "swagger-ui". Thanks for any possible answer

1 Answer 1

3

Use the property springdoc.swagger-ui.path in your application.properties file.

If you don't have the above file, you can also do it by creating application.yml file under src/main/resources folder, and copy the below YAML property

springdoc:
  swagger-ui:
    path: /docs
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.