1
0
Fork 0
arangodb/Documentation/Examples/api-aqlfunction-create

11 lines
300 B
Plaintext

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