本文整理汇总了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));
}
示例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"
);
}
示例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"));
}
示例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"));
}
示例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"));
}
示例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"));
}
示例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"
);
}
示例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", "", "", "", "");
}