Refine search
private Tag convertTag(io.swagger.annotations.Tag tagAnnotation) { Tag tag = new Tag(); tag.setName(tagAnnotation.name()); tag.setDescription(tagAnnotation.description()); tag.setExternalDocs(convertExternalDocs(tagAnnotation.externalDocs())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagAnnotation.extensions())); return tag; }
private Map<String, Tag> scanClasspathForTags() { Map<String, Tag> tags = new HashMap<>(); for (Class<?> aClass: new Reflections("").getTypesAnnotatedWith(SwaggerDefinition.class)) { SwaggerDefinition swaggerDefinition = AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class); for (io.swagger.annotations.Tag tag : swaggerDefinition.tags()) { String tagName = tag.name(); if (!tagName.isEmpty()) { tags.put(tag.name(), new Tag().name(tag.name()).description(tag.description())); } } } return tags; }
/** * Company: SFL LLC * Created on 11/29/17 * * @author Yervand Aghababyan */ @SwaggerDefinition(tags = {@Tag(name = "status", description = "The status of the identity service with technical details")}) @Api(tags = {"status"}) @Component @Path("/status") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public class StatusEndpoint { @ApiOperation("Returns identity service's status") @GET @Transactional(readOnly = true) public ApiResponseDto getStatus() { return new ApiResponseDto(); } }
protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config) { if (!config.basePath().isEmpty()) { swagger.setBasePath(config.basePath()); if (!config.host().isEmpty()) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (!tagConfig.name().isEmpty()) { Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (!tagConfig.externalDocs().value().isEmpty()) { tag.setExternalDocs( new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
@Path("/analyzer") @Api(value = "/analyzer", description = "Analysis services") @SwaggerDefinition(tags = {@Tag(name="analyzer", description="Analysis services")}) @Produces({ MediaType.APPLICATION_JSON }) public class AnalyzerService extends BaseResource {
protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config) { if (!config.basePath().isEmpty()) { swagger.setBasePath(config.basePath()); if (!config.host().isEmpty()) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (!tagConfig.name().isEmpty()) { Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (!tagConfig.externalDocs().value().isEmpty()) { tag.setExternalDocs( new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
@SwaggerDefinition(tags = {@Tag(name = "principals", description = "Principal CRUD operations")}) @Api(tags = {"principals"}) @Component @Path("/principals") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config) { if (!config.basePath().isEmpty()) { swagger.setBasePath(config.basePath()); if (!config.host().isEmpty()) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (!tagConfig.name().isEmpty()) { Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (!tagConfig.externalDocs().value().isEmpty()) { tag.setExternalDocs(new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
private Tag convertTag(io.swagger.annotations.Tag tagAnnotation) { Tag tag = new Tag(); tag.setName(tagAnnotation.name()); tag.setDescription(tagAnnotation.description()); tag.setExternalDocs(convertExternalDocs(tagAnnotation.externalDocs())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagAnnotation.extensions())); return tag; }
@SwaggerDefinition(tags = {@Tag(name = "permissions", description = "Permission CRUD operations")}) @Api(tags = {"permissions"}) @Component @Path("/permissions") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SuppressWarnings("deprecation") protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config) { if (!config.basePath().isEmpty()) { swagger.setBasePath(config.basePath()); if (!config.host().isEmpty()) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (!tagConfig.name().isEmpty()) { Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (!tagConfig.externalDocs().value().isEmpty()) { tag.setExternalDocs(new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
@SwaggerDefinition(tags = {@Tag(name = "roles", description = "Role CRUD operations")}) @Api(tags = {"roles"}) @Component @Path("/role") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@SuppressWarnings("deprecation") protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config) { if (!config.basePath().isEmpty()) { swagger.setBasePath(config.basePath()); if (!config.host().isEmpty()) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (!tagConfig.name().isEmpty()) { Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (!tagConfig.externalDocs().value().isEmpty()) { tag.setExternalDocs( new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
@SwaggerDefinition(tags = {@Tag(name = "auth", description = "Authorization & related")}) @Api(tags = {"auth"}) @Component @Path("/auth") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
readInfoConfig(config); if (StringUtils.isNotBlank(config.basePath())) { swagger.setBasePath(config.basePath()); if (StringUtils.isNotBlank(config.host())) { swagger.setHost(config.host()); for (io.swagger.annotations.Tag tagConfig : config.tags()) { if (StringUtils.isNotBlank(tagConfig.name())) { final Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description()); if (StringUtils.isNotBlank(tagConfig.externalDocs().value())) { tag.setExternalDocs(new ExternalDocs(tagConfig.externalDocs().value(), tagConfig.externalDocs().url())); .putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
@Path("/refine") @Api(value = "/refine", description = "OpenRefine Reconciliation Services") @SwaggerDefinition(tags = {@Tag(name="refine", description="OpenRefine Reconciliation Services")})
@Path("/lexical") @Api(value = "/lexical", description = "Lexical services") @SwaggerDefinition(tags = {@Tag(name="lexical", description="Lexical services")}) @Produces({ MediaType.APPLICATION_JSON }) public class LexicalService extends BaseResource {
@SwaggerDefinition(tags = {@Tag(name = "identities", description = "Identity CRUD operations")}) @Api(tags = {"identities"}) @Component @Path("/identities") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Path("/cypher") @Api(value = "/cypher", description = "Cypher utility services") @SwaggerDefinition(tags = {@Tag(name="cypher", description="Cypher utility services")}) @Produces({MediaType.TEXT_PLAIN}) public class CypherUtilService extends BaseResource {
@Path("/graph") @Api(value = "/graph", description = "Graph services") @SwaggerDefinition(tags = {@Tag(name="graph", description="Graph services")}) public class GraphService extends BaseResource {