src/main/java/com/loyalty/homework/config/SwaggerConfig.java
@Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2).select()
                .apis(RequestHandlerSelectors
                        .basePackage("com.loyalty.homework.controllers"))
                .paths(PathSelectors.any())
                .build().apiInfo(apiEndPointsInfo());
    }
/**
     * The beans to provide scanning information for the Swagger UI
     *
     * @return Docket
     */
The beans to provide scanning information for the Swagger UI
@return Docket
The beans to provide scanning information for the Swagger UI @return Docket
@Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2).select()
                .apis(RequestHandlerSelectors
                        .basePackage("com.loyalty.homework.controllers"))
                .paths(PathSelectors.any())
                .build().apiInfo(apiEndPointsInfo());
    }
@ Bean public Docket api ( ) { return new Docket ( DocumentationType . SWAGGER_2 ) . select ( ) . apis ( RequestHandlerSelectors . basePackage ( "com.loyalty.homework.controllers" ) ) . paths ( PathSelectors . any ( ) ) . build ( ) . apiInfo ( apiEndPointsInfo ( ) ) ; }
The beans to provide scanning information for the Swagger UI
 @return Docket
The beans to provide scanning information for the Swagger UI @return Docket