本文整理汇总了Java中com.mangofactory.swagger.models.dto.ApiInfo类的典型用法代码示例。如果您正苦于以下问题:Java ApiInfo类的具体用法?Java ApiInfo怎么用?Java ApiInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApiInfo类属于com.mangofactory.swagger.models.dto包,在下文中一共展示了ApiInfo类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private springfox.documentation.service.ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Spring boot中使用Swagger2构建RESTful APIs")
.description("author by jack duan")
.termsOfServiceUrl("http://127.0.0.1:9090")
.contact("jack duan")
.version("1.0")
.build();
}
开发者ID:duanyaxin,项目名称:springboot-smart,代码行数:10,代码来源:Swagger2.java
示例2: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfo(
"CATGenome Browser REST API",
"CATGenome Browser API description.",
"API TOS",
"[email protected]",
"API License",
"API License URL"
);
}
开发者ID:react-dev26,项目名称:NGB-master,代码行数:11,代码来源:SwaggerConfig.java
示例3: customImplementation
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
/**
* Every SwaggerSpringMvcPlugin bean is picked up by the swagger-mvc framework - allowing for multiple
* swagger groups i.e. same code base multiple swagger resource listings.
*/
@Bean
public SwaggerSpringMvcPlugin customImplementation(){
return new SwaggerSpringMvcPlugin(this.springSwaggerConfig)
.includePatterns(".*").apiInfo(new ApiInfo(
"Cloudstreet Market / Swagger UI",
"The Rest API developed with Spring MVC Cookbook [PACKT]",
"",
"[email protected]",
"GNU GENERAL PUBLIC LICENSE v2",
"http://www.gnu.org/licenses/gpl-2.0.html"));
}
开发者ID:alex-bretet,项目名称:cloudstreetmarket.com,代码行数:16,代码来源:AnnotationConfig.java
示例4: apiInfo
import com.mangofactory.swagger.models.dto.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:josedab,项目名称:angularjs-springboot-bookstore,代码行数:13,代码来源:SwaggerConfiguration.java
示例5: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfo(
"My Apps API Title",
"My Apps API Description",
"My Apps API terms of service",
"My Apps API Contact Email",
"My Apps API Licence Type",
"My Apps API License URL"
);
}
开发者ID:asdf2014,项目名称:yuzhouwan,代码行数:11,代码来源:CustomJavaPluginConfig.java
示例6: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfo(
"Bulbs_Core Light control API",
"Bulbs_Core enables you to abstract control of light bulbs from (potentially) different hardware vendors by giving you a unified API.",
"",
"[email protected]",
"No license yet",
"No license yet"
);
}
开发者ID:datenstrudel,项目名称:bulbs-core,代码行数:11,代码来源:SwaggerConfig.java
示例7: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfo(
"SRS API Docs",
"This is a listing of available apis of SNOMED release service. For more technical details visit "
+ "<a src='https://github.com/IHTSDO/snomed-release-service' > SNOMED Release Service </a> page @ github.com ",
"https://github.com/IHTSDO/snomed-release-service",
"[email protected]",
"Apache License, Version 2.0",
"http://www.apache.org/licenses/LICENSE-2.0"
);
}
开发者ID:IHTSDO,项目名称:snomed-release-service,代码行数:13,代码来源:SwaggerConfig.java
示例8: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
/**
* API Info as it appears on the swagger-ui page.
*
* @return API info
*/
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:glebreton,项目名称:lapetiterennes,代码行数:11,代码来源:SwaggerConfiguration.java
示例9: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo(InfoSettings settings) {
ApiInfoBuilder apiInfoBuilder = new ApiInfoBuilder();
apiInfoBuilder.description(settings.getDescription());
apiInfoBuilder.title(settings.getName() + "(" + settings.getArtifact() + ")");
return apiInfoBuilder.build();
}
开发者ID:Treydone,项目名称:mandrel,代码行数:7,代码来源:SwaggerConfiguration.java
示例10: apiInfo
import com.mangofactory.swagger.models.dto.ApiInfo; //导入依赖的package包/类
private ApiInfo apiInfo() {
return new ApiInfo("IRIS Backend Api", null, null, null, null, null);
}
开发者ID:Contargo,项目名称:iris,代码行数:5,代码来源:SwaggerConfig.java
注:本文中的com.mangofactory.swagger.models.dto.ApiInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论