{"openapi":"3.1.0","info":{"title":"Audit Trail Service","description":"Service for getting lineage.","version":"2.2.7"},"paths":{"/":{"get":{"summary":"Root","description":"For testing if service's up.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/health/":{"get":{"tags":["health"],"summary":"Healthcheck if all service dependencies are online.","description":"Return response that represents status of the atlas connections.","operationId":"get_health_v1_health__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/lineage/":{"get":{"tags":["lineage"],"summary":"Get Lineage","description":"Summary:\n    The api will query the lineage detail by given parameters\nParameter:\n    - item_id(str): the unqiue id in the metadata database\n    - entity_type(str): deault metadata_items. the entity type of node at the two side of lineage\n    - direction(str): default OUTPUT. the direction of given item_id in the lineage. The possible\n        value would be OUTPUT or INPUT. Example:\n        - OUTPUT means the given item_id is pointed by arrow: (node1)->lineage->(node with given id)\n        - INPUT means the given item_id points out: (node with given id)->lineage->(node1)\nReturn:\n    - {\n        \"baseEntityGuid\":\"56d845ed-b9a9-430f-826a-95cd9ad8902c\",\n        \"lineageDirection\":\"OUTPUT\",\n        \"lineageDepth\":50,\n        \"guidEntityMap\":{\n            \"<atlas_guid>\":{\"node_info\"}\n        },\n        \"relations\":[\n            {\n                \"fromEntityId\":\"\",\n                \"toEntityId\":\"\",\n                \"relationshipId\":\"\"\n            }\n        ]\n    }","operationId":"Lineage_get_v1_lineage__get","parameters":[{"required":true,"schema":{"type":"string","title":"Item Id"},"name":"item_id","in":"query"},{"required":false,"schema":{"type":"string","title":"Entity Type","default":"metadata_items"},"name":"entity_type","in":"query"},{"required":false,"schema":{"type":"string","title":"Direction","default":"OUTPUT"},"name":"direction","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETLineageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"EAPIResponseCode":{"enum":[200,500,400,404,403,401,409],"title":"EAPIResponseCode","description":"An enumeration."},"GETLineageResponse":{"properties":{"code":{"allOf":[{"$ref":"#/components/schemas/EAPIResponseCode"}],"default":200},"error_msg":{"type":"string","title":"Error Msg","default":""},"page":{"type":"integer","title":"Page","default":0},"total":{"type":"integer","title":"Total","default":1},"num_of_pages":{"type":"integer","title":"Num Of Pages","default":1},"result":{"type":"object","title":"Result","default":{},"example":{"code":200,"error_msg":"","page":0,"total":1,"num_of_pages":1,"result":[]}}},"type":"object","title":"GETLineageResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}