Skip to content

How to send lineage to OpenMetadata using API? #5608

Discussion options

You must be logged in to vote

You can get the details through the lineage API.
Please take a look at the schema to understand lineage.
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/type/entityLineage.json

Here’s an example of API
https://sandbox.open-metadata.org/api/v1/lineage/table/name/sample_data.ecommerce_db.shopify.raw_customer?upstreamDepth=3&downstreamDepth=3

  • "/api/v1/lineage" is the API endpoint.
  • You can get lineage with an Entity. In the above example, we are looking at the table entity called sample_data.ecommerce_db.shopify.raw_customer as the FQN.
  • You can also pass the Entity ID here.
  • Lineage can be shown as further and backwards as you want u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ShilpaVernekar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant