當前位置: 首頁>>代碼示例>>Java>>正文


Java Contact類代碼示例

本文整理匯總了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();
}
 
開發者ID:xhusky,項目名稱:swagger2-spring-boot-starter,代碼行數:18,代碼來源:Swagger2AutoConfiguration.java

示例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();
}
 
開發者ID:sdcuike,項目名稱:spring-boot-oauth2-demo,代碼行數:13,代碼來源:SpringfoxConfig.java

示例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;
}
 
開發者ID:genome-nexus,項目名稱:g2s,代碼行數:19,代碼來源:Application.java

示例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);
}
 
開發者ID:elder-oss,項目名稱:sourcerer-samples,代碼行數:21,代碼來源:Application.java

示例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);
}
 
開發者ID:elder-oss,項目名稱:sourcerer-samples,代碼行數:21,代碼來源:Application.java

示例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;
}
 
開發者ID:reportportal,項目名稱:service-authorization,代碼行數:22,代碼來源:Swagger2Configuration.java

示例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();
}
 
開發者ID:yu199195,項目名稱:happylifeplat-transaction,代碼行數:12,代碼來源:SwaggerConfig.java

示例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();
}
 
開發者ID:yu199195,項目名稱:happylifeplat-transaction,代碼行數:12,代碼來源:SwaggerConfig.java

示例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();
}
 
開發者ID:yu199195,項目名稱:happylifeplat-transaction,代碼行數:12,代碼來源:SwaggerConfig.java

示例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();
}
 
開發者ID:JonkiPro,項目名稱:REST-Web-Services,代碼行數:18,代碼來源:SwaggerConfig.java

示例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();
}
 
開發者ID:xubinux,項目名稱:xbin-store,代碼行數:12,代碼來源:Swagger2.java

示例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();
}
 
開發者ID:xubinux,項目名稱:xbin-store,代碼行數:12,代碼來源:Swagger2.java

示例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();
}
 
開發者ID:ekoz,項目名稱:kbase-doc,代碼行數:10,代碼來源:Swagger2.java

示例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();
}
 
開發者ID:yusong-shen,項目名稱:ecommerce-checkout-api-server,代碼行數:12,代碼來源:SwaggerDocumentationConfig.java

示例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());
}
 
開發者ID:ProjectIndoor,項目名稱:projectindoorweb,代碼行數:10,代碼來源:IndoorApiDescriptionHelper.java


注:本文中的springfox.documentation.service.Contact類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。