shell> curl --dump - http://localhost:8529/hello/world
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"request" : {
"authorized" : true,
"user" : null,
"database" : "_system",
"url" : "/hello/world",
"protocol" : "http",
"server" : {
"address" : "127.0.0.1",
"port" : 7337
},
"client" : {
"address" : "127.0.0.1",
"port" : 58268,
"id" : "153004690583387"
},
"internals" : {
},
"headers" : {
"accept-encoding" : "deflate",
"user-agent" : "ArangoDB",
"host" : "127.0.0.1",
"authorization" : "Basic cm9vdDo=",
"connection" : "Keep-Alive"
},
"requestType" : "GET",
"parameters" : {
},
"cookies" : {
},
"urlParameters" : {
}
},
"options" : {
}
}
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/hello/world <<EOF
{hello: 'world'}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"request" : {
"authorized" : true,
"user" : null,
"database" : "_system",
"url" : "/hello/world",
"protocol" : "http",
"server" : {
"address" : "127.0.0.1",
"port" : 7337
},
"client" : {
"address" : "127.0.0.1",
"port" : 58268,
"id" : "153004690583387"
},
"internals" : {
},
"headers" : {
"accept-encoding" : "deflate",
"content-length" : "16",
"user-agent" : "ArangoDB",
"host" : "127.0.0.1",
"authorization" : "Basic cm9vdDo=",
"connection" : "Keep-Alive"
},
"requestType" : "POST",
"requestBody" : "{hello: 'world'}",
"parameters" : {
},
"cookies" : {
},
"urlParameters" : {
}
},
"options" : {
}
}
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/hello/world <<EOF
{hello: 'world'}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"request" : {
"authorized" : true,
"user" : null,
"database" : "_system",
"url" : "/hello/world",
"protocol" : "http",
"server" : {
"address" : "127.0.0.1",
"port" : 7337
},
"client" : {
"address" : "127.0.0.1",
"port" : 58268,
"id" : "153004690583387"
},
"internals" : {
},
"headers" : {
"accept-encoding" : "deflate",
"content-length" : "16",
"user-agent" : "ArangoDB",
"host" : "127.0.0.1",
"authorization" : "Basic cm9vdDo=",
"connection" : "Keep-Alive"
},
"requestType" : "PUT",
"requestBody" : "{hello: 'world'}",
"parameters" : {
},
"cookies" : {
},
"urlParameters" : {
}
},
"options" : {
}
}
shell> curl -X DELETE --dump - http://localhost:8529/hello/world
HTTP/1.1 404 Not Found
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"error" : true,
"code" : 404,
"errorNum" : 404,
"errorMessage" : "unknown path '/hello/world'"
}