本文整理匯總了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());
}