Class LineageResource
- java.lang.Object
-
- org.openmetadata.service.resources.lineage.LineageResource
-
@Path("/v1/lineage") @Produces("application/json") @Consumes("application/json") public class LineageResource extends Object
-
-
Constructor Summary
Constructors Constructor Description LineageResource(@NonNull CollectionDAO dao, Authorizer authorizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddLineage(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, @Valid AddLineage addLineage)javax.ws.rs.core.ResponsedeleteLineage(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, String fromEntity, String fromId, String toEntity, String toId)@Valid EntityLineageget(javax.ws.rs.core.UriInfo uriInfo, String entity, String id, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int upstreamDepth, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int downStreamDepth)@Valid EntityLineagegetByName(javax.ws.rs.core.UriInfo uriInfo, String entity, String fqn, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int upstreamDepth, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int downStreamDepth)
-
-
-
Constructor Detail
-
LineageResource
public LineageResource(@NonNull @NonNull CollectionDAO dao, Authorizer authorizer)
-
-
Method Detail
-
get
@GET @Valid @Path("/{entity}/{id}") public @Valid EntityLineage get(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("entity") String entity, @PathParam("id") String id, @DefaultValue("1") @Min(0L) @Max(3L) @QueryParam("upstreamDepth") @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int upstreamDepth, @DefaultValue("1") @Min(0L) @Max(3L) @QueryParam("downstreamDepth") @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int downStreamDepth) throws IOException- Throws:
IOException
-
getByName
@GET @Valid @Path("/{entity}/name/{fqn}") public @Valid EntityLineage getByName(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("entity") String entity, @PathParam("fqn") String fqn, @DefaultValue("1") @Min(0L) @Max(3L) @QueryParam("upstreamDepth") @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int upstreamDepth, @DefaultValue("1") @Min(0L) @Max(3L) @QueryParam("downstreamDepth") @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(3L) int downStreamDepth) throws IOException- Throws:
IOException
-
addLineage
@PUT public javax.ws.rs.core.Response addLineage(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @Valid @Valid AddLineage addLineage) throws IOException- Throws:
IOException
-
deleteLineage
@DELETE @Path("/{fromEntity}/{fromId}/{toEntity}/{toId}") public javax.ws.rs.core.Response deleteLineage(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("fromEntity") String fromEntity, @PathParam("fromId") String fromId, @PathParam("toEntity") String toEntity, @PathParam("toId") String toId) throws IOException- Throws:
IOException
-
-