当前位置: 首页>>代码示例>>Java>>正文


Java ApiInfo类代码示例

本文整理汇总了Java中com.wordnik.swagger.model.ApiInfo的典型用法代码示例。如果您正苦于以下问题:Java ApiInfo类的具体用法?Java ApiInfo怎么用?Java ApiInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ApiInfo类属于com.wordnik.swagger.model包,在下文中一共展示了ApiInfo类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: swaggerSpringMvcPlugin

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
@Bean
public SwaggerSpringMvcPlugin swaggerSpringMvcPlugin() {
    CustomModelPropertiesProvider propertiesProvider = new CustomModelPropertiesProvider(defaultModelPropertiesProvider, alternateTypeProvider, new CustomAccessorsProvider(typeResolver));
    ModelDependencyProvider modelDependencyProvider = new ModelDependencyProvider(typeResolver, alternateTypeProvider, propertiesProvider);

    DefaultModelProvider modelProvider = new DefaultModelProvider(typeResolver, alternateTypeProvider, propertiesProvider, modelDependencyProvider);

    return new SwaggerSpringMvcPlugin(springSwaggerConfig)
            .modelProvider(modelProvider)
            .alternateTypeRules(
                    new GenericAlternateTypeRule(ResponseEntity.class, 0, null, null),
                    new GenericAlternateTypeRule(DeferredResult.class, 0, null, null),
                    new GenericAlternateTypeRule(Future.class, 0, null, null),
                    new GenericAlternateTypeRule(scala.concurrent.Future.class, 0, null, null))
            .apiVersion(appVersion)
            .apiInfo(new ApiInfo(null, null, null, null, null, null));
}
 
开发者ID:Kixeye,项目名称:chassis,代码行数:18,代码来源:SwaggerConfiguration.java

示例2: apiInfo

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
    return new ApiInfo(
            "Capa de Servicios Web para el Juez en Línea Caribeño",
            "Versión 1.0",
            "http://coj.uci.cu/general/about.xhtml",
            "[email protected]",
            "Universidad de las Ciencias Informáticas",
            "http://www.uci.cu"
    );
}
 
开发者ID:dovier,项目名称:coj-web,代码行数:11,代码来源:SwaggerSpringMvcConfig.java

示例3: configureSwagger

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
@Override
public void configureSwagger(final SwaggerConfig config) {
    config.setApiVersion("1.0");
    config.setApiInfo(new ApiInfo("HML service",
                                  "HML service.",
                                  null,
                                  null,
                                  "GNU Lesser General Public License (LGPL), version 3 or later",
                                  "http://www.gnu.org/licenses/lgpl.html"));
}
 
开发者ID:nmdp-bioinformatics,项目名称:service-hml,代码行数:11,代码来源:HmlApplication.java

示例4: apiInfo

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
/**
 * API Info as it appears on the swagger-ui page.
 */
private ApiInfo apiInfo() {
    return new ApiInfo(
            propertyResolver.getProperty("title"),
            propertyResolver.getProperty("description"),
            propertyResolver.getProperty("termsOfServiceUrl"),
            propertyResolver.getProperty("contact"),
            propertyResolver.getProperty("license"),
            propertyResolver.getProperty("licenseUrl"));
}
 
开发者ID:sanketbajoria,项目名称:jittrackGTS,代码行数:13,代码来源:SwaggerConfiguration.java

示例5: configureSwagger

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
@Override
public void configureSwagger(final SwaggerConfig config) {
    config.setApiVersion("1.0");
    config.setApiInfo(new ApiInfo("Feature service",
                                  "Enumerated sequence feature service.",
                                  null,
                                  null,
                                  "GNU Lesser General Public License (LGPL), version 3 or later",
                                  "http://www.gnu.org/licenses/lgpl.html"));
}
 
开发者ID:nmdp-bioinformatics,项目名称:service-feature,代码行数:11,代码来源:FeatureApplication.java

示例6: apiInfo

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
/**
 * API Info as it appears on the swagger-ui page
 */
private ApiInfo apiInfo() {
    return new ApiInfo(
            propertyResolver.getProperty("title"),
            propertyResolver.getProperty("description"),
            propertyResolver.getProperty("termsOfServiceUrl"),
            propertyResolver.getProperty("contact"),
            propertyResolver.getProperty("license"),
            propertyResolver.getProperty("licenseUrl"));
}
 
开发者ID:thpham,项目名称:ithings-demo,代码行数:13,代码来源:SwaggerConfiguration.java

示例7: apiInfo

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
    return new ApiInfo(
            "jTrains API",
            "API for model railroad and beyond!",
            "/terms",
            "[email protected]",
            "Apache 2.0",
            "http://www.apache.org/licenses/LICENSE-2.0.html"
    );
}
 
开发者ID:CarloMicieli,项目名称:trenako-v2,代码行数:11,代码来源:SwaggerConfig.java

示例8: apiInfo

import com.wordnik.swagger.model.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
	return new ApiInfo("AWS Utilization Monitor", "API for monitoring resource usage of Amazon Webservice accounts", "", "", "", "");
}
 
开发者ID:janloeffler,项目名称:aws-utilization-monitor,代码行数:4,代码来源:SwaggerConfig.java


注:本文中的com.wordnik.swagger.model.ApiInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。