当前位置: 首页>>代码示例>>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;未经允许,请勿转载。