{
"basePath": "/",
"swaggerVersion": "1.1",
"apiVersion": "0.1",
"apis": [
{
"operations": [
{
"errorResponses": [],
"parameters": [
{
"dataType": "String",
"paramType": "path",
"required": "true",
"name": "collection-id",
"description": "The id of the collection. "
},
{
"dataType": "String",
"paramType": "query",
"required": "True",
"name": "vertex",
"description": "The id of the start vertex. "
},
{
"dataType": "String",
"paramType": "query",
"name": "direction",
"description": "Selects in or out direction for edges. If not set, any edges are returned. "
}
],
"notes": "Returns the list of edges starting or ending in the vertex identified by vertex-handle.
",
"summary": "reads in- or outbound edges",
"httpMethod": "GET",
"examples": "Any direction
> curl -X GET --dump - http://localhost:8529/_api/edges/17501660?vertex=17501660/18419164\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n\n{\n \"edges\": [\n {\n \"_from\": \"17501660/18419164\",\n \"_rev\": \"19140060\",\n \"_to\": \"17501660/19008988\",\n \"_id\": \"17501660/19140060\"\n },\n {\n \"_from\": \"17501660/18419164\",\n \"_rev\": \"19336668\",\n \"_to\": \"17501660/19008988\",\n \"_id\": \"17501660/19336668\",\n \"e\": 1\n },\n {\n \"_from\": \"17501660/19008988\",\n \"_rev\": \"19402204\",\n \"_to\": \"17501660/18419164\",\n \"_id\": \"17501660/19402204\",\n \"e\": 2\n }\n ],\n \"code\": 200,\n \"error\": false\n}\n
> curl -X GET --dump - http://localhost:8529/_api/edges/17501660?vertex=17501660/18419164&direction=in\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n\n{\n \"edges\": [\n {\n \"_from\": \"17501660/19008988\",\n \"_rev\": \"19402204\",\n \"_to\": \"17501660/18419164\",\n \"_id\": \"17501660/19402204\",\n \"e\": 2\n }\n ],\n \"code\": 200,\n \"error\": false\n}\n
> curl -X GET --dump - http://localhost:8529/_api/edges/17501660?vertex=17501660/18419164&direction=out\n\nHTTP/1.1 200 OK\ncontent-type: application/json\n\n{\n \"edges\": [\n {\n \"_from\": \"17501660/18419164\",\n \"_rev\": \"19336668\",\n \"_to\": \"17501660/19008988\",\n \"_id\": \"17501660/19336668\",\n \"e\": 1\n },\n {\n \"_from\": \"17501660/18419164\",\n \"_rev\": \"19140060\",\n \"_to\": \"17501660/19008988\",\n \"_id\": \"17501660/19140060\"\n }\n ],\n \"code\": 200,\n \"error\": false\n}\n