Created
June 3, 2016 12:15
-
-
Save ahmetkizilay/5fa52063738acce4c34546571d68f8b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /db/data/transaction HTTP/1.1 | |
Accept: application/json | |
Accept-Encoding: gzip, deflate, compress | |
Content-Length: 146 | |
Content-Type: application/json; charset=utf-8 | |
Host: localhost:7474 | |
User-Agent: HTTPie/0.8.0 | |
{ | |
"parameters": null, | |
"resultDataContents": [ | |
"row", | |
"REST" | |
], | |
"statements": [ | |
{ | |
"statement": "MATCH (n) DETACH DELETE n" | |
} | |
] | |
} | |
HTTP/1.1 201 Created | |
Access-Control-Allow-Origin: * | |
Content-Length: 172 | |
Content-Type: application/json | |
Date: Fri, 03 Jun 2016 12:13:53 GMT | |
Location: http://localhost:7474/db/data/transaction/1 | |
Server: Jetty(9.2.9.v20150224) | |
{ | |
"commit": "http://localhost:7474/db/data/transaction/1/commit", | |
"errors": [], | |
"results": [ | |
{ | |
"columns": [], | |
"data": [] | |
} | |
], | |
"transaction": { | |
"expires": "Fri, 03 Jun 2016 12:14:53 +0000" | |
} | |
} | |
POST /db/data/transaction/1 HTTP/1.1 | |
Accept: application/json | |
Accept-Encoding: gzip, deflate, compress | |
Content-Length: 345 | |
Content-Type: application/json; charset=utf-8 | |
Host: localhost:7474 | |
User-Agent: HTTPie/0.8.0 | |
{ | |
"statements": [ | |
{ | |
"parameters": null, | |
"resultDataContents": [ | |
"row", | |
"REST" | |
], | |
"statement": "CREATE (tsn:TSN)\nSET tsn = { value: 'prop1', val2: 2 }\nWITH tsn\nCALL ga.timetree.single({time: timestamp(), resolution: 'Millisecond', create: true})\nYIELD instant as instant\nCREATE (tsn)-[:HAS_EVENT]->(instant)" | |
} | |
] | |
} | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Origin: * | |
Content-Length: 172 | |
Content-Type: application/json | |
Date: Fri, 03 Jun 2016 12:14:06 GMT | |
Server: Jetty(9.2.9.v20150224) | |
{ | |
"commit": "http://localhost:7474/db/data/transaction/1/commit", | |
"errors": [], | |
"results": [ | |
{ | |
"columns": [], | |
"data": [] | |
} | |
], | |
"transaction": { | |
"expires": "Fri, 03 Jun 2016 12:15:06 +0000" | |
} | |
} | |
POST /db/data/transaction/1/commit HTTP/1.1 | |
Accept: */* | |
Accept-Encoding: gzip, deflate, compress | |
Content-Length: 0 | |
Host: localhost:7474 | |
User-Agent: HTTPie/0.8.0 | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Origin: * | |
Content-Length: 26 | |
Content-Type: application/json | |
Date: Fri, 03 Jun 2016 12:14:06 GMT | |
Server: Jetty(9.2.9.v20150224) | |
{ | |
"errors": [], | |
"results": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment