[bash ~]$ curl "http://localhost:8182/?gremlin=100-1"
{"requestId":"9eb68183-cccc-4ef4-b1a6-c76297e43cd0","status":{"message":"","code":200,"attributes":{}},"result":{"data":[99],"meta":{}}}
[bash ~]$ curl "http://localhost:8182/?gremlin=g.V().has('uuid', 'test').count()"
{"message":"no gremlin script supplied"}
[bash ~]$ curl "http://localhost:8182/?gremlin=graph.traversal().V().has('uuid', 'test').count()"
{"message":"no gremlin script supplied"}
channelizer: org.apache.tinkerpop.gremlin.server.channel.HttpChannelizergraphs: { graph: conf/titan.properties}plugins: - aurelius.titan - company.plugin
gremlin.graph=com.thinkaurelius.titan.core.TitanFactorystorage.backend=cassandrastorage.hostname=ips...index.search.backend=elasticsearchindex.search.elasticsearch.interface=TRANSPORT_CLIENTindex.search.hostname=ip
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/485103ec-1811-4b8a-92df-64be129426da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Set<String> imports = new HashSet<String>() {{ add(IMPORT_SPACE + MyClass.class.getPackage().getName() + DOT_STAR); ...
}};pluginAcceptor.addImports(imports);Graph graph = TitanFactory.open("conf/titan.properties");pluginAcceptor.addBinding("graph", graph);pluginAcceptor.addBinding("g", graph.traversal());try { pluginAcceptor.eval("user={string -> g.V().has('username', string)}"); ...} catch (ScriptException e) { throw new PluginInitializationException(e);}
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0b567be5-7c34-46c2-8f56-d5828ddc8ed2%40googlegroups.com.
{valid response}
[bash ~]$ curl "http://localhost:8182/?gremlin=g.V().valueMap()"
{valid response}
[bash ~]$ curl "http://localhost:8182/?gremlin=g.V().out().count()"
{valid response}
[bash ~]$ curl "http://localhost:8182/?gremlin=g.V().has('uuid', 'test').out().count()"
{"message":"no gremlin script supplied"}
channelizer: org.apache.tinkerpop.gremlin.server.channel.HttpChannelizergraphs: { graph: conf/titan.properties}
gremlin.graph=com.thinkaurelius.titan.core.TitanFactorystorage.backend=cassandrastorage.hostname=localhostschema.default=none
curl -v "http://localhost:8182/?gremlin=g.V().has('uuid', 'test').out().count()
show?* Trying 127.0.0.1...* Connected to localhost (127.0.0.1) port 8182 (#0)> GET /?gremlin=g.V().has('uuid', 'test').out().count() HTTP/1.1> Host: localhost:8182> User-Agent: curl/7.43.0> Accept: */*>< HTTP/1.1 400 Bad Request< Content-Type: application/json* no chunk, no close, no size. Assume close to signal end<* Closing connection 0
{"message":"no gremlin script supplied"}
HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: failure(java.lang.IllegalArgumentException: invalid version format: 'TEST') HTTP/1.1), version: HTTP/1.0, content: EmptyByteBufBE)GET /bad-request HTTP/1.0
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/4cc1dfe6-e5b2-458f-a1b3-53418aea4010%40googlegroups.com.