title: Connect to Titan Graph DB with TinkerPop3 Restful Interface
body: <p>I am very new to Titan/Gremlin/TinkerPop3 and am playing around/experimenting with Restful API Interface to create/modify/delete vertices/edge in database.</p>
  
  <p>I basically want to see if its possible to use the API exposed by tinkerpop3 for graph processing.</p>
  
  <p>I created the modern graph in gremlin server using:</p>
  
  <pre><code>gremlin&gt; graph = TinkerFactory.createModern()
  gremlin&gt; g = graph.traversal()
  </code></pre>
  
  <p>I am able to connect to Titan via restful API and execute:</p>
  
  <pre><code>curl "http://localhost:8182?gremlin=100-1"
  {"requestId":"c2dfb667-0fbe-4796-9a5b-cc472487a5b0","status":{"message":"","code":200,"attributes":{}},"result":{"data":[99],"meta":{}}}
  </code></pre>
  
  <p>But the following doesn't return anything: </p>
  
  <pre><code>curl http://localhost:8182 -d '{"gremlin": "g.V()"}'
  {"requestId":"8ba30f35-31e7-46ff-b16e-3e01fb9a49bf","status":{"message":"","code":200,"attributes":{}},"result":{"data":[],"meta":{}}}
  </code></pre>
  
  <p>I did my reading from: <a href="http://tinkerpop.incubator.apache.org/docs/3.0.1-incubating/#_connecting_via_rest" rel="nofollow">http://tinkerpop.incubator.apache.org/docs/3.0.1-incubating/#_connecting_via_rest</a></p>
  
  <p>Any help is very appreciated. Thanks in advance.</p>