Java Code Examples for springfox.documentation.service.ApiInfoThe following are top voted examples for showing how to use springfox.documentation.service.ApiInfo. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples.
Example 1Project: Learny---Server File: SwaggerConfig.java View source code 7 votes
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Learny Api").description("Hier steht die Beschreibung der Api").termsOfServiceUrl("http://springfox.io").contact("springfox").license("Apache License Version 2.0").licenseUrl("https://github.com/springfox/springfox/blob/master/LICENSE").version("2.0").build();}
Example 2Project: jhipster_myapp File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
Example 3Project: swagger-codegen File: SwaggerConfig.java View source code 6 votes
@BeanApiInfo apiInfo() {ApiInfo apiInfo = new ApiInfo("Swagger Petstore","This is a sample server Petstore server. You can find out more about Swagger at <a href="http://swagger.io">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key "special-key" to test the authorization filters","1.0.0","","apiteam@swagger.io","Apache 2.0","http://www.apache.org/licenses/LICENSE-2.0.html" );return apiInfo;}
Example 4Project: jhipster-sample-app-gradle File: SwaggerConfiguration.java View source code 6 votes
/**
* Swagger Springfox configuration.
*/@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) {
log.debug("Starting Swagger");StopWatch watch = new StopWatch();
watch.start();ApiInfo apiInfo = new ApiInfo(
jHipsterProperties.getSwagger().getTitle(),
jHipsterProperties.getSwagger().getDescription(),
jHipsterProperties.getSwagger().getVersion(),
jHipsterProperties.getSwagger().getTermsOfServiceUrl(),
jHipsterProperties.getSwagger().getContact(),
jHipsterProperties.getSwagger().getLicense(),
jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Example 5Project: menuber File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
Example 6Project: jhipster-sample-app-java7 File: SwaggerConfiguration.java View source code 6 votes
/**
* Swagger Springfox configuration.
*/@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) {
log.debug("Starting Swagger");StopWatch watch = new StopWatch();
watch.start();ApiInfo apiInfo = new ApiInfo(
jHipsterProperties.getSwagger().getTitle(),
jHipsterProperties.getSwagger().getDescription(),
jHipsterProperties.getSwagger().getVersion(),
jHipsterProperties.getSwagger().getTermsOfServiceUrl(),
jHipsterProperties.getSwagger().getContact(),
jHipsterProperties.getSwagger().getLicense(),
jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(org.joda.time.LocalDate.class, String.class).directModelSubstitute(org.joda.time.LocalDateTime.class, Date.class).directModelSubstitute(org.joda.time.DateTime.class, Date.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Example 7Project: bugkillers File: SpringfoxConfig2.java View source code 6 votes
private ApiInfo apiInfo() {ApiInfo apiInfo = new ApiInfo("???",
PROJECT_NAME + " API",
PROJECT_NAME + " ??API??","http://127.0.0.1:9081/api","hd.rd.cos@meituan.com","MTA License","MTA API License URL");return apiInfo;}
Example 8Project: springfox-demos File: Application.java View source code 6 votes
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Springfox petstore API").description("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum " +"has been the industry's standard dummy text ever since the 1500s, when an unknown printer "+ "took a " +"galley of type and scrambled it to make a type specimen book. It has survived not only five " +"centuries, but also the leap into electronic typesetting, remaining essentially unchanged. " +"It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum " +"passages, and more recently with desktop publishing software like Aldus PageMaker including " +"versions of Lorem Ipsum.").termsOfServiceUrl("http://springfox.io").contact("springfox").license("Apache License Version 2.0").licenseUrl("https://github.com/springfox/springfox/blob/master/LICENSE").version("2.0").build();}
Example 9Project: flipper-reverse-image-search File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
Example 10Project: jhipster-ionic File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
Example 11Project: jhipster-sample-app File: SwaggerConfiguration.java View source code 6 votes
/**
* Swagger Springfox configuration.
*/@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) {
log.debug("Starting Swagger");StopWatch watch = new StopWatch();
watch.start();ApiInfo apiInfo = new ApiInfo(
jHipsterProperties.getSwagger().getTitle(),
jHipsterProperties.getSwagger().getDescription(),
jHipsterProperties.getSwagger().getVersion(),
jHipsterProperties.getSwagger().getTermsOfServiceUrl(),
jHipsterProperties.getSwagger().getContact(),
jHipsterProperties.getSwagger().getLicense(),
jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Example 12Project: jhipster-sample-app-mongodb File: SwaggerConfiguration.java View source code 6 votes
/**
* Swagger Springfox configuration.
*/@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) {
log.debug("Starting Swagger");StopWatch watch = new StopWatch();
watch.start();ApiInfo apiInfo = new ApiInfo(
jHipsterProperties.getSwagger().getTitle(),
jHipsterProperties.getSwagger().getDescription(),
jHipsterProperties.getSwagger().getVersion(),
jHipsterProperties.getSwagger().getTermsOfServiceUrl(),
jHipsterProperties.getSwagger().getContact(),
jHipsterProperties.getSwagger().getLicense(),
jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Example 13Project: spring-swagger2markup-demo File: SwaggerConfig.java View source code 6 votes
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Swagger Petstore").description("Petstore API Description").contact("apiteam@wordnik.com").license("Apache 2.0").licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html").version("1.0.0").build();}
Example 14Project: fullstop File: SwaggerConfig.java View source code 6 votes
@BeanApiInfo apiInfo() {return new ApiInfo("Fullstop API","Audit reporting","","","","Apache 2.0","http://www.apache.org/licenses/LICENSE-2.0.html");}
Example 15Project: jhipster-sample-app-elasticsearch File: SwaggerConfiguration.java View source code 6 votes
/**
* Swagger Springfox configuration.
*/@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) {
log.debug("Starting Swagger");StopWatch watch = new StopWatch();
watch.start();ApiInfo apiInfo = new ApiInfo(
jHipsterProperties.getSwagger().getTitle(),
jHipsterProperties.getSwagger().getDescription(),
jHipsterProperties.getSwagger().getVersion(),
jHipsterProperties.getSwagger().getTermsOfServiceUrl(),
jHipsterProperties.getSwagger().getContact(),
jHipsterProperties.getSwagger().getLicense(),
jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build();
watch.stop();
log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Example 16Project: JTL-FIleService File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
Example 17Project: ABC-Go File: SwaggerConfiguration.java View source code 6 votes
/**
* API Info as it appears on the swagger-ui page.
*/private ApiInfo apiInfo() {return new ApiInfo(
propertyResolver.getProperty("title"),
propertyResolver.getProperty("description"),
propertyResolver.getProperty("version"),
propertyResolver.getProperty("termsOfServiceUrl"),
propertyResolver.getProperty("contact"),
propertyResolver.getProperty("license"),
propertyResolver.getProperty("licenseUrl"));}
The following are top voted examples for showing how to use springfox.documentation.service.ApiInfo. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples.
Project: Learny---Server File: SwaggerConfig.java View source code | 7 votes |
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Learny Api").description("Hier steht die Beschreibung der Api").termsOfServiceUrl("http://springfox.io").contact("springfox").license("Apache License Version 2.0").licenseUrl("https://github.com/springfox/springfox/blob/master/LICENSE").version("2.0").build();}
Project: jhipster_myapp File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
Project: swagger-codegen File: SwaggerConfig.java View source code | 6 votes |
@BeanApiInfo apiInfo() {ApiInfo apiInfo = new ApiInfo("Swagger Petstore","This is a sample server Petstore server. You can find out more about Swagger at <a href="http://swagger.io">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key "special-key" to test the authorization filters","1.0.0","","apiteam@swagger.io","Apache 2.0","http://www.apache.org/licenses/LICENSE-2.0.html" );return apiInfo;}
Project: jhipster-sample-app-gradle File: SwaggerConfiguration.java View source code | 6 votes |
/** * Swagger Springfox configuration. */@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) { log.debug("Starting Swagger");StopWatch watch = new StopWatch(); watch.start();ApiInfo apiInfo = new ApiInfo( jHipsterProperties.getSwagger().getTitle(), jHipsterProperties.getSwagger().getDescription(), jHipsterProperties.getSwagger().getVersion(), jHipsterProperties.getSwagger().getTermsOfServiceUrl(), jHipsterProperties.getSwagger().getContact(), jHipsterProperties.getSwagger().getLicense(), jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build(); watch.stop(); log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Project: menuber File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
Project: jhipster-sample-app-java7 File: SwaggerConfiguration.java View source code | 6 votes |
/** * Swagger Springfox configuration. */@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) { log.debug("Starting Swagger");StopWatch watch = new StopWatch(); watch.start();ApiInfo apiInfo = new ApiInfo( jHipsterProperties.getSwagger().getTitle(), jHipsterProperties.getSwagger().getDescription(), jHipsterProperties.getSwagger().getVersion(), jHipsterProperties.getSwagger().getTermsOfServiceUrl(), jHipsterProperties.getSwagger().getContact(), jHipsterProperties.getSwagger().getLicense(), jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(org.joda.time.LocalDate.class, String.class).directModelSubstitute(org.joda.time.LocalDateTime.class, Date.class).directModelSubstitute(org.joda.time.DateTime.class, Date.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build(); watch.stop(); log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Project: bugkillers File: SpringfoxConfig2.java View source code | 6 votes |
private ApiInfo apiInfo() {ApiInfo apiInfo = new ApiInfo("???", PROJECT_NAME + " API", PROJECT_NAME + " ??API??","http://127.0.0.1:9081/api","hd.rd.cos@meituan.com","MTA License","MTA API License URL");return apiInfo;}
Project: springfox-demos File: Application.java View source code | 6 votes |
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Springfox petstore API").description("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum " +"has been the industry's standard dummy text ever since the 1500s, when an unknown printer "+ "took a " +"galley of type and scrambled it to make a type specimen book. It has survived not only five " +"centuries, but also the leap into electronic typesetting, remaining essentially unchanged. " +"It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum " +"passages, and more recently with desktop publishing software like Aldus PageMaker including " +"versions of Lorem Ipsum.").termsOfServiceUrl("http://springfox.io").contact("springfox").license("Apache License Version 2.0").licenseUrl("https://github.com/springfox/springfox/blob/master/LICENSE").version("2.0").build();}
Project: flipper-reverse-image-search File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
Project: jhipster-ionic File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
Project: jhipster-sample-app File: SwaggerConfiguration.java View source code | 6 votes |
/** * Swagger Springfox configuration. */@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) { log.debug("Starting Swagger");StopWatch watch = new StopWatch(); watch.start();ApiInfo apiInfo = new ApiInfo( jHipsterProperties.getSwagger().getTitle(), jHipsterProperties.getSwagger().getDescription(), jHipsterProperties.getSwagger().getVersion(), jHipsterProperties.getSwagger().getTermsOfServiceUrl(), jHipsterProperties.getSwagger().getContact(), jHipsterProperties.getSwagger().getLicense(), jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build(); watch.stop(); log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Project: jhipster-sample-app-mongodb File: SwaggerConfiguration.java View source code | 6 votes |
/** * Swagger Springfox configuration. */@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) { log.debug("Starting Swagger");StopWatch watch = new StopWatch(); watch.start();ApiInfo apiInfo = new ApiInfo( jHipsterProperties.getSwagger().getTitle(), jHipsterProperties.getSwagger().getDescription(), jHipsterProperties.getSwagger().getVersion(), jHipsterProperties.getSwagger().getTermsOfServiceUrl(), jHipsterProperties.getSwagger().getContact(), jHipsterProperties.getSwagger().getLicense(), jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build(); watch.stop(); log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Project: spring-swagger2markup-demo File: SwaggerConfig.java View source code | 6 votes |
private ApiInfo apiInfo() {return new ApiInfoBuilder().title("Swagger Petstore").description("Petstore API Description").contact("apiteam@wordnik.com").license("Apache 2.0").licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html").version("1.0.0").build();}
Project: fullstop File: SwaggerConfig.java View source code | 6 votes |
@BeanApiInfo apiInfo() {return new ApiInfo("Fullstop API","Audit reporting","","","","Apache 2.0","http://www.apache.org/licenses/LICENSE-2.0.html");}
Project: jhipster-sample-app-elasticsearch File: SwaggerConfiguration.java View source code | 6 votes |
/** * Swagger Springfox configuration. */@Beanpublic Docket swaggerSpringfoxDocket(JHipsterProperties jHipsterProperties) { log.debug("Starting Swagger");StopWatch watch = new StopWatch(); watch.start();ApiInfo apiInfo = new ApiInfo( jHipsterProperties.getSwagger().getTitle(), jHipsterProperties.getSwagger().getDescription(), jHipsterProperties.getSwagger().getVersion(), jHipsterProperties.getSwagger().getTermsOfServiceUrl(), jHipsterProperties.getSwagger().getContact(), jHipsterProperties.getSwagger().getLicense(), jHipsterProperties.getSwagger().getLicenseUrl());Docket docket = new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).genericModelSubstitutes(ResponseEntity.class).forCodeGeneration(true).genericModelSubstitutes(ResponseEntity.class).directModelSubstitute(java.time.LocalDate.class, String.class).directModelSubstitute(java.time.ZonedDateTime.class, Date.class).directModelSubstitute(java.time.LocalDateTime.class, Date.class).select().paths(regex(DEFAULT_INCLUDE_PATTERN)).build(); watch.stop(); log.debug("Started Swagger in {} ms", watch.getTotalTimeMillis());return docket;}
Project: JTL-FIleService File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
Project: ABC-Go File: SwaggerConfiguration.java View source code | 6 votes |
/** * API Info as it appears on the swagger-ui page. */private ApiInfo apiInfo() {return new ApiInfo( propertyResolver.getProperty("title"), propertyResolver.getProperty("description"), propertyResolver.getProperty("version"), propertyResolver.getProperty("termsOfServiceUrl"), propertyResolver.getProperty("contact"), propertyResolver.getProperty("license"), propertyResolver.getProperty("licenseUrl"));}
来源:http://www.programcreek.com/java-api-examples/index.php?api=springfox.documentation.service.ApiInfo