Skip to content

Instantly share code, notes, and snippets.

@oyiptong
Created March 29, 2012 20:41
Show Gist options
  • Save oyiptong/2243602 to your computer and use it in GitHub Desktop.
Save oyiptong/2243602 to your computer and use it in GitHub Desktop.
$ curl -v -X POST -H Content-Type:application/json -d '{"touch\u00e9" : "\u3042"}' http://localhost:7474/db/data/node
* 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/node 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: 26
>
< HTTP/1.1 201 Created
< Content-Length: 1124
< Location: http://localhost:7474/db/data/node/597
< Content-Encoding: UTF-8
< Content-Type: application/json
< Access-Control-Allow-Origin: *
< Server: Jetty(6.1.25)
<
{
"outgoing_relationships" : "http://localhost:7474/db/data/node/597/relationships/out",
"data" : {
"touché" : "あ"
},
"traverse" : "http://localhost:7474/db/data/node/597/traverse/{returnType}",
"all_typed_relationships" : "http://localhost:7474/db/data/node/597/relationships/all/{-list|&|types}",
"property" : "http://localhost:7474/db/data/node/597/properties/{key}",
"self" : "http://localhost:7474/db/data/node/597",
"properties" : "http://localhost:7474/db/data/node/597/properties",
"outgoing_typed_relationships" : "http://localhost:7474/db/data/node/597/relationships/out/{-list|&|types}",
"incoming_relationships" : "http://localhost:7474/db/data/node/597/relationships/in",
"extensions" : {
},
"create_relationship" : "http://localhost:7474/db/data/node/597/relationships",
"paged_traverse" : "http://localhost:7474/db/data/node/597/paged/traverse/{returnType}{?pageSize,leaseTime}",
"all_relationships" : "http://localhost:7474/db/data/node/597/relationships/all",
"incoming_typed_relationships" : "http://localhost:7474/db/data/node/597/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