To run cypher query on graph:

Method : POST

URI : /graph/<graph_table>/query

Data : query

Example

curl -H "Content-Type: application/json" -d' S=>(person:*)-[WORKS_IN]->(company:*)' -X POST http://192.168.1.105:18080/graph/mygraph/query

Response

{
   "triple":[
      {
         "sub":"person:rajiv",
         "pred":"WORKS_IN",
         "obj":"company:microsoft"
      },
      {
         "sub":"person:sanjay",
         "pred":"WORKS_IN",
         "obj":"company:google"
      }
   ],
   "num_items":2
}

Or

curl -H "Content-Type: application/json" -d' S=>(@p person:*)-[@w WORKS_IN]->(@c company:*); RETURN p.name AS Person w.rel AS relation c.name AS Company w.startyear AS working_from' -X POST http://192.168.1.105:18080/graph/mygraph/query

Response

{
   "rows":[
      {
         "Company":"microsoft",
         "Person":"rajiv",
         "relation":"WORKS_IN",
         "working_from":1997
      },
      {
         "Company":"google",
         "Person":"sanjay",
         "relation":"WORKS_IN",
         "working_from":2008
      }
   ],
   "num_items":2
}

Notification related APIs URI start with /db/notification.