I am trying to list all the endpoints in my application including some of the endpoints present in the dependent libraries using Swagger. Is there any way to do so?
Swagger automatically fetch all the endpoints according to configuration. You have to mention the base url:
return new Docket(DocumentationType.SWAGGER_2) .select() .paths(PathSelectors.ant("/admin/**")) .build() .useDefaultResponseMessages(false);