To get the dependency graph of the schema:

In a schema there could be many streams, with several different kinds of relationships among them. It would be good to get the dependency doc review. On dashboard, we can visualise the graph for better understanding

Method : GET

URI : /stream/<schema_name>/depgraph

Example

curl -X GET http://192.168.1.105:18080/stream/ecomm/depgraph

Response

{
   "node_info":[
      {
         "node":"dummy_head",
         "type":0,
         "parent":[
            
         ],
         "children":[
            "ecomm__visitor"
         ],
         "refr-to":[
            
         ],
         "refr-by":[
            
         ],
         "refr":[
            
         ],
         "fltr":[
            
         ],
         "joins":[
            
         ],
         "cepq":[
            
         ],
         "gpby":[
            
         ],
         "enty":[
            
         ]
      },
      {
         "node":"ecomm__visitor",
         "type":1,
         "parent":[
            "dummy_head"
         ],
         "children":[
            
         ],
         "refr-to":[
            
         ],
         "refr-by":[
            
         ],
         "refr":[
            
         ],
         "fltr":[
            
         ],
         "joins":[
            
         ],
         "cepq":[
            
         ],
         "gpby":[
            
         ],
         "enty":[
            
         ]
      }
   ],
   "schema":"ecomm",
   "schemaid":1600908251909619608
}

There is a "dummy_node", which is parent (super parent) of all the nodes, kind of starting or seed node/stream from where all other streams are linked. The relationships among streams could be hierarchical (parent-child) or peer-to-peer (reference, join etc.)

To get the depgraph for a stream, we can call the API with URI /stream/<schema_name>/<stream_name>/depgraph with GET method.