1
0
Fork 0
arangodb/Documentation/Examples/RestAqlfunctionCreate.gener...

12 lines
321 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/aqlfunction <<EOF
{"name":"myfunctions::temperature::celsiustofahrenheit","code":"function (celsius) { return celsius * 1.8 + 32; }"}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"error" : false,
"code" : 201
}