I have a problem registering a service that's on the filesystem already. I know I managed to do it before but I've lost the skill.
I have tried this:
curl
-H "Content-Type: application/json"
-X POST
-d @install-data.json
http://localhost:8529/_api/foxx
install-data.json
{
"configuration": {
"engines": {
"arangodb": "^3.0.0"
},
"main": "index.js"
},
"source": "/var/opt/foxx/getting-started.zip"
}
The service bundle is located at /var/opt/foxx/getting-started.zip
The result is
{"error":true,"errorNum":3013,"errorMessage":"failed to parse service options\nDetails: Unexpected token o in JSON at position 1","code":400}