I have following code to define Docket for swagger documentation for my rest API in a spring boot application:
return new Docket(DocumentationType.SWAGGER_2)