Majid Abdolhosseini
Majid Abdolhosseini

Reputation: 2301

Spring boot project add login endpoint to swagger API Doc (springdoc-openapi-ui)

I'm using java 17 and spring 2.6.3 and this package : springdoc-openapi-ui:1.6.5 and I was wondering how I can add login endpoint to the swagger documentation ? I'm using Spring's security package and login endpoint is provided for me but still I want it to be included in my Swagger UI.

Upvotes: 3

Views: 898

Answers (1)

Abhijit Salunkhe
Abhijit Salunkhe

Reputation: 11

Add following property in your application.properties file:

springdoc.show-login-endpoint=true

Upvotes: 1

Related Questions