Skip to content

Instantly share code, notes, and snippets.

@oyiptong
Created March 29, 2012 20:45
Show Gist options
  • Save oyiptong/2243619 to your computer and use it in GitHub Desktop.
Save oyiptong/2243619 to your computer and use it in GitHub Desktop.
$ curl -v -X POST -H Content-Type:application/json -d '[{"method":"POST", "to":"/node", "body":{"touch\u00e9" : "\u3042"}}]' http://localhost:7474/db/data/batch
* About to connect() to localhost port 7474 (#0)
* Trying ::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 7474 (#0)
> POST /db/data/batch HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:7474
> Accept: */*
> Content-Type:application/json
> Content-Length: 68
>
< HTTP/1.1 200 OK
< Content-Encoding: UTF-8
< Content-Type: application/json
< Access-Control-Allow-Origin: *
< Transfer-Encoding: chunked
< Server: Jetty(6.1.25)
<
[{"location":"http://localhost:7474/db/data/node/598","body":{
"outgoing_relationships" : "http://localhost:7474/db/data/node/598/relationships/out",
"data" : {
"touch?" : "?"
},
"traverse" : "http://localhost:7474/db/data/node/598/traverse/{returnType}",
"all_typed_relationships" : "http://localhost:7474/db/data/node/598/relationships/all/{-list|&|types}",
"property" : "http://localhost:7474/db/data/node/598/properties/{key}",
"self" : "http://localhost:7474/db/data/node/598",
"properties" : "http://localhost:7474/db/data/node/598/properties",
"outgoing_typed_relationships" : "http://localhost:7474/db/data/node/598/relationships/out/{-list|&|types}",
"incoming_relationships" : "http://localhost:7474/db/data/node/598/relationships/in",
"extensions" : {
},
"create_relationship" : "http://localhost:7474/db/data/node/598/relationships",
"paged_traverse" : "http://localhost:7474/db/data/node/598/paged/traverse/{returnType}{?pageSize,leaseTime}",
"all_relationships" : "http://localhost:7474/db/data/node/598/relationships/all",
"incoming_typed_relationships" : "http://localhost:7474/db/data/node/598/relationships/in/{-list|&|types}"
* Connection #0 to host localhost left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment