HTTP Methods
Last updated
Was this helpful?
Last updated
Was this helpful?
This file covers deprecated v1 HTTP API. All the methods of v2 HTTP API is described in OpenAPI/Swagger and can be viewed by importing https://raw.githubusercontent.com/cayleygraph/cayley/master/docs/api/swagger.yml
URL into or .
Cayley supports streaming to Gephi via .
Unless otherwise noted, all URIs take a POST command.
/api/v1/query/gizmo
POST Body: Javascript source code of the query
Response: JSON results, depending on the query.
/api/v1/query/graphql
POST Body: query
Response: JSON results, depending on the query.
/api/v1/query/mql
POST Body: JSON MQL query
Response: JSON results, with a query wrapper:
If the JSON is invalid or an error occurs:
Result form:
/api/v1/shape/gizmo
POST Body: Javascript source code of the query
Response: JSON description of the last query executed.
/api/v1/shape/mql
POST Body: JSON MQL query
Response: JSON description of the query.
Responses come in the form
200 Success:
400 / 500 Error:
/api/v1/write
POST Body: JSON quads
Response: JSON response message
/api/v1/write/file/nquad
POST Body: Form-encoded body:
Key: NQuadFile
, Value: N-Quad file to write.
Response: JSON response message
Example:
/api/v1/delete
POST Body: JSON quads
Response: JSON response message.