Forum Discussion

pete_123's avatar
pete_123
New Contributor
3 years ago

Extend swagger ui with own endpoints

We are using Swagger Ui with Spring Boot and use some of the spring boot "magic" crud methods like findAllById which can automatically be translated into a query. In addition we added some endpoints in the Repository classes with native queries. They don't appear in the swagger ui that can be called from the browser via http://localhost:8080/rest/swagger-ui.html

Our personalized endpoints work as expected, but are not documented in the swagger ui.

 

Can you please give me a hint how to extend the api interface? Some keywords to search for would probably be plenty to read more about this topic.

 

Thanks and kind regards, Pete