springfox.documentation.builders.ApiInfoBuilder Java Examples
The following examples show how to use
springfox.documentation.builders.ApiInfoBuilder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SwaggerConfig.java From mPaaS with Apache License 2.0 | 6 votes |
/** * 动态产生Docket分组信息 * * @return */ @Autowired public void dynamicConfiguration() { ConfigurableApplicationContext context = (ConfigurableApplicationContext) applicationContext; DefaultListableBeanFactory beanFactory = (DefaultListableBeanFactory) context.getBeanFactory(); String systemName = "Microservice PaaS"; ApiInfoBuilder apiInfoBuilder = new ApiInfoBuilder() .description("mPaas前端后端对应接口") .version("1.0.1") .license("Code Farmer Framework(iByte) Org."); Map<String, ModuleMappingInfo> moduleInfo = mappingHelper.getMappingInfos(); for (Map.Entry<String, ModuleMappingInfo> entry : moduleInfo.entrySet()) { beanFactory.registerSingleton(entry.getKey(), new Docket(DocumentationType.SWAGGER_2) .groupName(entry.getKey()) .apiInfo(apiInfoBuilder.title(systemName + NamingConstant.DOT + entry.getKey()).build()) .select() .apis(genSubPackage(entry.getKey())) .paths(Predicates.or(PathSelectors.ant(NamingConstant.PATH_PREFIX_DATA + "/**"), PathSelectors.ant(NamingConstant.PATH_PREFIX_API + "/**"))) .build()); } }
Example #2
Source File: Swagger2Config.java From jeecg-boot-with-activiti with MIT License | 6 votes |
/** * api文档的详细信息函数,注意这里的注解引用的是哪个 * * @return */ private ApiInfo apiInfo() { return new ApiInfoBuilder() // //大标题 .title("Jeecg-Boot 后台服务API接口文档") // 版本号 .version("1.0") // .termsOfServiceUrl("NO terms of service") // 描述 .description("后台API接口") // 作者 .contact("JEECG团队") .license("The Apache License, Version 2.0") .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html") .build(); }
Example #3
Source File: Swagger2Config.java From mall-learning with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("SwaggerUI演示") .description("mall-tiny") .contact("macro") .version("1.0") .build(); }
Example #4
Source File: Swagger2Config.java From mall with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("SwaggerUI演示") .description("Demo模块") .contact("macro") .version("1.0") .build(); }
Example #5
Source File: Swagger2Config.java From xmall with MIT License | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("mall前台系统") .description("mall前台系统") .contact("macro") .version("1.0") .build(); }
Example #6
Source File: Swagger2Config.java From HIS with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("his-cloud-service-pms") .description("基于restful的HIS接口") .contact("neu") .version("1.0") .build(); }
Example #7
Source File: SwaggerConfig.java From spring-cloud with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("user-service-2 通用接口") .description("user-service-2 通用接口") .version("0.0.1") .build(); }
Example #8
Source File: SwaggerConfig.java From c4sg-services with MIT License | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Code for Social Good Web Application") .description("Code for Social Good is a global volunteering platform that provides nonprofit organizations and open source projects with free technical resources.") .termsOfServiceUrl("#") .contact(new Contact("Code for Social Good", "http://code4socialgood.org/", "[email protected]")) .license("Licence") .licenseUrl("#") .version("1.0") .build(); }
Example #9
Source File: OpenAPIDocumentationConfig.java From openapi-generator with Apache License 2.0 | 5 votes |
ApiInfo apiInfo() { return new ApiInfoBuilder() .title("OpenAPI Petstore") .description("This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\") .license("Apache-2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0.html") .termsOfServiceUrl("") .version("1.0.0") .contact(new Contact("","", "")) .build(); }
Example #10
Source File: SwaggerConfig.java From spring-microservice-exam with MIT License | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("硕果云") .description("https://gitee.com/wells2333/spring-microservice-exam") .termsOfServiceUrl("https://gitee.com/wells2333/spring-microservice-exam") .contact(new Contact("tangyi", "https://gitee.com/wells2333/spring-microservice-exam", "[email protected]")) .version("3.7.0") .build(); }
Example #11
Source File: SwaggerConfig.java From wingcloud with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("wc-client-admin") .description("接口文档说明") .contact(new Contact("浅然", "", "[email protected]")) .version("2.0") .build(); }
Example #12
Source File: SwaggerConfig.java From spring-security with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("脚手架接口文档") .description("提供一站式sso解决方案") .contact("shf") .termsOfServiceUrl("http://localhost:8080/") .version("1.0") .build(); }
Example #13
Source File: SwaggerConfig.java From MeetingFilm with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Guns Doc") .description("Guns Api文档") .termsOfServiceUrl("http://git.oschina.net/naan1993/guns") .contact("stylefeng") .version("2.0") .build(); }
Example #14
Source File: SwaggerConfig.java From yyblog with MIT License | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("yyblog项目api接口文档") .description("部分接口展示") .contact(new Contact("小卖铺的老爷爷", "http://www.laoyeye.net/", "allan_zhuo#163.com")) .version("1.0") .build(); }
Example #15
Source File: SwaggerConfig.java From SpringCloud with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Spring Boot中使用Swagger2构建RESTful APIs") .description("更多Spring Boot API") .termsOfServiceUrl("https://github.com/zhoutaoo/SpringCloud") .version("2.0") .build(); }
Example #16
Source File: SwaggerConfig.java From cloud-service with MIT License | 5 votes |
@Bean public Docket docket() { return new Docket(DocumentationType.SWAGGER_2).groupName("认证中心swagger接口文档") .apiInfo(new ApiInfoBuilder().title("认证中心swagger接口文档") .contact(new Contact("allen", "", "[email protected]")).version("1.0").build()) .select().paths(PathSelectors.any()).build(); }
Example #17
Source File: Swagger2Config.java From sophia_scaffolding with Apache License 2.0 | 5 votes |
/** * 创建Swagger页面 信息 * @return */ private ApiInfo apiInfo() { return new ApiInfoBuilder(). title(title). contact(contact). version(version). license(license). licenseUrl(licenseUrl). termsOfServiceUrl(termsOfServiceUrl). description(description) .build(); }
Example #18
Source File: Swagger2Config.java From SpringBoot-Home with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() // 文档标题 .title("这里是Swagger文档标题") // 文档描述 .description("这里是文档描述") .termsOfServiceUrl("https://www.dusty.vip") .version("v1.0")//定义版本号 .build(); }
Example #19
Source File: Swagger2Config.java From mall with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("mall搜索系统") .description("mall搜索模块") .contact("macro") .version("1.0") .build(); }
Example #20
Source File: SwaggerAutoConfiguration.java From mcloud with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title(swaggerProperties.getApiInfo().getTitle()) .description(swaggerProperties.getApiInfo().getDescription()) .license(swaggerProperties.getApiInfo().getLicense()) .licenseUrl(swaggerProperties.getApiInfo().getLicenseUrl()) .termsOfServiceUrl(swaggerProperties.getApiInfo().getTermsOfServiceUrl()) .version(swaggerProperties.getApiInfo().getVersion()) .build(); }
Example #21
Source File: SwaggerAutoConfiguration.java From open-cloud with MIT License | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title(openSwaggerProperties.getTitle()) .description(openSwaggerProperties.getDescription()) .version("1.0") .build(); }
Example #22
Source File: SpringfoxConfig.java From AuTe-Framework with Apache License 2.0 | 5 votes |
@Bean ApiInfo apiInfo(AppProperties appProperties, VersionService versionService) { return new ApiInfoBuilder() .title(appProperties.getTitle()) .description(appProperties.getDescription()) .version(versionService.getApplicationVersion().getImplementationVersion()) .contact(new Contact( appProperties.getContact().getName(), appProperties.getContact().getUrl(), appProperties.getContact().getEmail() )) .license(appProperties.getLicense().getName()) .licenseUrl(appProperties.getLicense().getUrl()) .build(); }
Example #23
Source File: Swagger2.java From Demo with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() // 标题 .title("springboot 利用 swagger 构建 API 文档") // Api 文档描述 .description("简单优雅的 restful 风格,https://blog.csdn.net/turodog/") .termsOfServiceUrl("https://blog.csdn.net/turodog/") // 文档作者信息 .contact(new Contact("陈志远", "https://github.com/turoDog", "[email protected]")) // 文档版本 .version("1.0") .build(); }
Example #24
Source File: SwaggerConfiguration.java From SwaggerOfflineDoc with Apache License 2.0 | 5 votes |
/** * @param * @return springfox.documentation.service.ApiInfo * @Title: 构建API基本信息 * @methodName: buildApiInfo * @Description: * @author: 王延飞 * @date: 2017-12-11 8:44 */ private ApiInfo buildApiInfo() { return new ApiInfoBuilder() .title("用户信息API文档") .description("这里除了查看接口功能外,还提供了调试测试功能") .contact("王延飞") .version("1.0") .build(); }
Example #25
Source File: Swagger2Config.java From mall-learning with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("SwaggerUI演示") .description("mall-tiny") .contact("macro") .version("1.0") .build(); }
Example #26
Source File: Swagger2Config.java From HIS with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("his-cloud-service-pms") .description("基于restful的HIS接口") .contact("neu") .version("1.0") .build(); }
Example #27
Source File: SwaggerConfig.java From BlogManagePlatform with Apache License 2.0 | 5 votes |
/** * 说明配置 * @author Frodez * @date 2019-01-06 */ private void infoConfig(Docket docket) { ApiInfoBuilder infoBuilder = new ApiInfoBuilder(); infoBuilder.title(swagger.getTitle()); infoBuilder.description(swagger.getDescription()); Contact contact = new Contact(swagger.getAuthor(), swagger.getDocUrl(), swagger.getEmail()); infoBuilder.contact(contact); infoBuilder.version(swagger.getAppVersion()); infoBuilder.license(swagger.getLicense()); infoBuilder.licenseUrl(swagger.getLicenseUrl()); docket.apiInfo(infoBuilder.build()); }
Example #28
Source File: WxSwagger2Configuration.java From litemall with MIT License | 5 votes |
private ApiInfo wxApiInfo() { return new ApiInfoBuilder() .title("litemall-wx API") .description("litemall小商场API") .termsOfServiceUrl("https://github.com/linlinjava/litemall") .contact("https://github.com/linlinjava/litemall") .version("1.0") .build(); }
Example #29
Source File: SwaggerConfig.java From wangsy-january with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("订单服务") .description("订单管理") .termsOfServiceUrl("website") .contact(new Contact("name", "url", "email")) .version("v1.0") .build(); }
Example #30
Source File: Swagger2Configuration.java From JavaQuarkBBS with Apache License 2.0 | 5 votes |
private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("Quark BBS 接口文档") .contact("LHR") .version("1.0") .build(); }