I have added SpringFox dependencies to my Spring Boot project and when I open the swagger-ui.html page I can see the documentation for the RestControllers which I have created myself and I do see documentation for:
- basic-error-controller
- default
The "default" tab contains the description for /api/login/ endpoint but I cannot find documentation on how to configure this /api/login endpoint to:
- Change the endpoint path from /api/login to /login
- Specify the body of HTTP Request to contain a sample JSON Model which should have two fields: email and password.
I use Spring Security and the /login endpoint accepts: email and password for user to be able to login.
How can I add documentation to a default /login endpoint?