Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 887
Majid Abdolhosseini Avatar asked Nov 18 '25 13:11

Majid Abdolhosseini


1 Answers

Add following property in your application.properties file:

springdoc.show-login-endpoint=true
like image 197
Abhijit Salunkhe Avatar answered Nov 20 '25 04:11

Abhijit Salunkhe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!