本文整理汇总了Java中springfox.documentation.service.Contact类的典型用法代码示例。如果您正苦于以下问题:Java Contact类的具体用法?Java Contact怎么用?Java Contact使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Contact类属于springfox.documentation.service包,在下文中一共展示了Contact类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo apiInfo(Swagger2Properties swagger2Properties) {
return new ApiInfoBuilder()
.title(swagger2Properties.getApiInfo().getTitle())
.description(swagger2Properties.getApiInfo().getDescription())
.termsOfServiceUrl(swagger2Properties.getApiInfo().getTermsOfServiceUrl())
.contact(
new Contact(
swagger2Properties.getApiInfo().getContact().getName(),
swagger2Properties.getApiInfo().getContact().getUrl(),
swagger2Properties.getApiInfo().getContact().getEmail()
)
)
.license(swagger2Properties.getApiInfo().getLicense())
.licenseUrl(swagger2Properties.getApiInfo().getLicenseUrl())
.version(swagger2Properties.getApiInfo().getVersion())
.build();
}
示例2: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo apiInfo() {
Contact contact = new Contact("sdcuike", "https://github.com/sdcuike", "[email protected]");
return new ApiInfoBuilder()
.title("spring boot practice API")
.description("练习spring-boot")
.termsOfServiceUrl("https://github.com/sdcuike/spring-boot-practice")
.contact(contact)
.license("Apache License Version 2.0")
.licenseUrl("https://www.apache.org/licenses/LICENSE-2.0")
.version("1.0.0")
.build();
}
示例3: annotationApiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo annotationApiInfo() {
/*
* return new ApiInfoBuilder().title("G2S API").description(
* "A Genome to Strucure (G2S) API Supports Automated Mapping and Annotating Genomic Variants in 3D Protein Structures. Supports Inputs from Human Genome Position, Uniprot and Human Ensembl Names"
* ) // .termsOfServiceUrl("http://terms-of-service-url")
* .termsOfServiceUrl("http://g2s.genomenexus.org") .contact(
* "CMO, MSKCC").license("GNU AFFERO GENERAL PUBLIC LICENSE Version 3")
* .licenseUrl(
* "https://github.com/cBioPortal/pdb-annotation/blob/master/LICENSE").
* version("2.0").build();
*/
ApiInfo apiInfo = new ApiInfo("G2S web API",
"A Genome to Strucure (G2S) API Supports Automated Mapping and Annotating Genomic Variants in 3D Protein Structures. Supports Inputs from Human Genome Position, Uniprot and Human Ensembl Names.",
"1.0 (beta)", "g2s.genomenexus.org",
new Contact("G2S", "http://g2s.genomenexus.org", "[email protected]"), "License",
"https://github.com/cBioPortal/cbioportal/blob/master/LICENSE");
return apiInfo;
}
示例4: customDocket
import springfox.documentation.service.Contact; //导入依赖的package包/类
@Bean
public Docket customDocket() {
ApiInfo apiInfo = new ApiInfo(
"TODO Query Service",
"REST service implementation for querying TODO items",
"1.0.0",
null,
new Contact(
"Elder Developers",
"https://www.github.com/elder-oss",
"[email protected]"),
null,
null);
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
.build()
.apiInfo(apiInfo);
}
示例5: customDocket
import springfox.documentation.service.Contact; //导入依赖的package包/类
@Bean
public Docket customDocket() {
ApiInfo apiInfo = new ApiInfo(
"TODO Command Service",
"REST service implementation for creating and modifying TODO items",
"1.0.0",
null,
new Contact(
"Elder Developers",
"https://www.github.com/elder-oss",
"[email protected]"),
null,
null);
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
.build()
.apiInfo(apiInfo);
}
示例6: docket
import springfox.documentation.service.Contact; //导入依赖的package包/类
@Bean
public Docket docket(){
ApiInfo rpInfo = new ApiInfo("Report Portal", "Report Portal UAT documentation", buildVersion, "urn:tos",
new Contact("EPAM Systems", "https://www.epam.com", ""),
"GPLv3", "https://www.gnu.org/licenses/licenses.html#GPL", Collections.emptyList());
Docket rpDocket = new Docket(DocumentationType.SWAGGER_2)
.ignoredParameterTypes(Principal.class)
.useDefaultResponseMessages(false)
.pathProvider(rpPathProvider())
/* remove default endpoints from listing */
.select().apis(not(or(
basePackage("org.springframework.boot"),
basePackage("org.springframework.cloud"),
basePackage("org.springframework.security.oauth2.provider.endpoint"))))
.build();
//@formatter:on
rpDocket.apiInfo(rpInfo);
return rpDocket;
}
示例7: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Swagger API")
.description("transaction-admin 平台接口测试")
.license("Apache 2.0")
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
.termsOfServiceUrl("")
.version(VERSION)
.contact(new Contact("xiaoyu", "", "[email protected]"))
.build();
}
示例8: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Swagger API")
.description("dubbo分布式事务解决方案之二阶段提交测试体验")
.license("Apache 2.0")
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
.termsOfServiceUrl("")
.version(VERSION)
.contact(new Contact("xiaoyu", "", "[email protected]"))
.build();
}
示例9: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Swagger API")
.description("springcloud分布式事务解决方案之二阶段提交测试体验")
.license("Apache 2.0")
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
.termsOfServiceUrl("")
.version(VERSION)
.contact(new Contact("xiaoyu", "", "[email protected]"))
.build();
}
示例10: metaData
import springfox.documentation.service.Contact; //导入依赖的package包/类
/**
* Set api info.
*
* @return Api info
*/
private ApiInfo metaData() {
return new ApiInfoBuilder()
.title("REST API")
.description("Spring Boot REST API")
.contact(new Contact("JonkiPro",
"https://github.com/JonkiPro",
"[email protected]"))
.license("MIT")
.licenseUrl("https://github.com/JonkiPro/REST-Web-Services/blob/master/LICENSE")
.version("1.0")
.build();
}
示例11: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo apiInfo() {
Contact contact=new Contact("Binux",
"http://git.oschina.net/binu/xbin-store","[email protected]");
return new ApiInfoBuilder()
.title(title + " RESTful APIs")
.description(title + " RESTful API详情!")
.contact(contact)
.version("1.0")
.build();
}
示例12: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo apiInfo() {
Contact contact=new Contact("Binux",
"http://git.oschina.net/binu/xbin-store","[email protected]");
return new ApiInfoBuilder()
.title(title + " RESTful APIs")
.description(title + " RESTful API详情!")
.contact(contact)
.version("1.0")
.build();
}
示例13: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Spring Boot 中使用 Swagger2 构建 RESTful APIs ")
.description("")
.termsOfServiceUrl("http://ekozhan.com/kbase-doc/")
.contact(new Contact("ekozhan", "http://ekozhan.com/", "[email protected]"))
.version("1.0")
.build();
}
示例14: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("ECommerce Checkout Flow API")
.description("Registration, Address Information, Delivery Options, Payment, Confirmation")
.license("")
.licenseUrl("")
.termsOfServiceUrl("")
.version("0.1")
.contact(new Contact("","", ""))
.build();
}
示例15: apiInfo
import springfox.documentation.service.Contact; //导入依赖的package包/类
private static ApiInfo apiInfo() {
return new ApiInfo(
TITLE,
DESCRIPTION,
VERSION,
TERMS_OF_SERVICE,
new Contact(EMPTY_STRING, EMPTY_STRING, EMPTY_STRING),
EMPTY_STRING, EMPTY_STRING, Collections.emptyList());
}