@Test void canCreateDocket() { final SwaggerAutoConfiguration config = new SwaggerAutoConfiguration(); final Docket docket = config.genieApi(); Assertions.assertThat(docket.getDocumentationType()).isEqualTo(DocumentationType.SWAGGER_2); }
@Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) public Docket genieApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo( new ApiInfo( "Genie REST API", "See our <a href=\"http: + "documentation.<br/>Post any issues found " + "<a href=\"https: "4.0.0", null, new Contact("Netflix, Inc.", "https: "Apache 2.0", "http: Lists.newArrayList() ) ) .select() .apis(RequestHandlerSelectors.basePackage("com.netflix.genie.web.apis.rest.v3.controllers")) .paths(PathSelectors.any()) .build() .pathMapping("/") .useDefaultResponseMessages(false); }
SwaggerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) public Docket genieApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo( new ApiInfo( "Genie REST API", "See our <a href=\"http: + "documentation.<br/>Post any issues found " + "<a href=\"https: "4.0.0", null, new Contact("Netflix, Inc.", "https: "Apache 2.0", "http: Lists.newArrayList() ) ) .select() .apis(RequestHandlerSelectors.basePackage("com.netflix.genie.web.apis.rest.v3.controllers")) .paths(PathSelectors.any()) .build() .pathMapping("/") .useDefaultResponseMessages(false); } }
SwaggerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) public Docket genieApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo( new ApiInfo( "Genie REST API", "See our <a href=\"http: + "documentation.<br/>Post any issues found " + "<a href=\"https: "4.0.0", null, new Contact("Netflix, Inc.", "https: "Apache 2.0", "http: Lists.newArrayList() ) ) .select() .apis(RequestHandlerSelectors.basePackage("com.netflix.genie.web.apis.rest.v3.controllers")) .paths(PathSelectors.any()) .build() .pathMapping("/") .useDefaultResponseMessages(false); }  }
SwaggerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) public Docket genieApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo( new ApiInfo( "Genie REST API", "See our <a href=\"http: + "documentation.<br/>Post any issues found " + "<a href=\"https: "4.0.0", null, new Contact("Netflix, Inc.", "https: "Apache 2.0", "http: Lists.newArrayList() ) ) .select() .apis(RequestHandlerSelectors.basePackage("com.netflix.genie.web.apis.rest.v3.controllers")) .paths(PathSelectors.any()) .build() .pathMapping("/") .useDefaultResponseMessages(false); }  @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) Docket genieApi(); }
SwaggerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) public Docket genieApi() { return new Docket(DocumentationType.SWAGGER_2) .apiInfo( new ApiInfo( "Genie REST API", "See our <a href=\"http: + "documentation.<br/>Post any issues found " + "<a href=\"https: "4.0.0", null, new Contact("Netflix, Inc.", "https: "Apache 2.0", "http: Lists.newArrayList() ) ) .select() .apis(RequestHandlerSelectors.basePackage("com.netflix.genie.web.apis.rest.v3.controllers")) .paths(PathSelectors.any()) .build() .pathMapping("/") .useDefaultResponseMessages(false); }  @Bean @ConditionalOnMissingBean(name = "genieApi", value = Docket.class) Docket genieApi();  }