Java Code Examples for springfox.documentation.swagger.web.SwaggerResource#setName()
The following examples show how to use
springfox.documentation.swagger.web.SwaggerResource#setName() .
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 sample-zuul-swagger2 with Apache License 2.0 | 5 votes |
private SwaggerResource createResource(String name, String location, String version) { SwaggerResource swaggerResource = new SwaggerResource(); swaggerResource.setName(name); swaggerResource.setLocation("/" + location + "/v2/api-docs"); swaggerResource.setSwaggerVersion(version); return swaggerResource; }
Example 2
Source File: FwSwaggerResourcesProvider.java From fw-cloud-framework with MIT License | 5 votes |
private SwaggerResource buildSwaggerResource(String name, String location) { SwaggerResource swaggerResource = new SwaggerResource(); swaggerResource.setName(name); swaggerResource.setLocation(location); swaggerResource.setSwaggerVersion("2.0"); return swaggerResource; }
Example 3
Source File: ServiceDefinitionsContext.java From careconnect-reference-implementation with Apache License 2.0 | 5 votes |
public List<SwaggerResource> getSwaggerDefinitions() { List<SwaggerResource> resources = new ArrayList<>(); SwaggerResource resource = new SwaggerResource(); resource.setLocation("/apidocs" ); resource.setName(HapiProperties.getServerName()); resource.setSwaggerVersion("2.0"); resources.add(resource); return resources; }
Example 4
Source File: SpringTimeSwaggerProvider.java From springtime with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { List<SwaggerResource> resources = super.get(); SwaggerResource springTimeResource = new SwaggerResource(); springTimeResource.setName("SpringTime"); springTimeResource.setLocation("/v2/rfc-api-docs"); resources.add(0, springTimeResource); return resources; }
Example 5
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(RedbeamsApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("Redbeams API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 6
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(SdxApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("Datalake API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 7
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(FreeIpaApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("FreeIPA API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 8
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(EnvironmentApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("Environment API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 9
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(CoreApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("Auto-scaling API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 10
Source File: CombinedSwaggerResourcesProvider.java From cloudbreak with Apache License 2.0 | 5 votes |
@Override public List<SwaggerResource> get() { SwaggerResource jerseySwaggerResource = new SwaggerResource(); jerseySwaggerResource.setLocation(CoreApi.API_ROOT_CONTEXT + "/swagger.json"); jerseySwaggerResource.setSwaggerVersion("2.0"); jerseySwaggerResource.setName("Cloudbreak API"); return Stream.concat(Stream.of(jerseySwaggerResource), inMemorySwaggerResourcesProvider.get().stream()).collect(Collectors.toList()); }
Example 11
Source File: SwaggerDocumentationConfiguration.java From microservices-basics-spring-boot with Apache License 2.0 | 3 votes |
/** * Create swagger resource for all microservices * * @param name * @param location * @param version * @return */ private SwaggerResource createSwaggerResource(String name, String location, String version) { SwaggerResource swaggerResource = new SwaggerResource(); swaggerResource.setName(name); swaggerResource.setLocation(location); swaggerResource.setSwaggerVersion(version); return swaggerResource; }