Foxx Manager HTTP API -> List installed foxx-services per database?

39 views
Skip to first unread message

Julian May

unread,
Jan 25, 2016, 2:24:54 AM1/25/16
to ArangoDB
Hello

I'm using _db/{dbName}/_admin/foxx/install and .../uninstall to setup & teardown foxx-services which is working wonderfully. I just can't seem to get a list of installed foxx'es per database (_db/{dbName}/_admin/foxx/list and _db/{dbName}/_admin/foxx/installed is not recognized), without using the foxx-manager binary. I would very much like to only use the http-API if possible. 
For now, i'm including an index.html -file, so i can check whether i get a HTTP 404 on _db/{dbName}/{foxxName}. This seems very vulnerable towards false negatives though, since it hinges on all developers "promising" to include an index.html in foxx-services.

Is there any way to list installed foxx-services per database via http-API?

Thanks!

Alan Plum

unread,
Jan 25, 2016, 6:04:34 AM1/25/16
to ArangoDB
Hi Julian,

the foxx-manager CLI's "list" command just wraps the system collection "_apps" for the current database (making sure it is created if it doesn't already exist and converting the raw data to the expected format).

If you just want to see what Foxx services are installed for each database, you can simply query the "_apps" collection in that database via the HTTP API directly. The documents contain the mount path, the configuration, dependency paths, manifest and some other metadata.


Cheers,

Alan

Julian May

unread,
Jan 26, 2016, 1:40:37 AM1/26/16
to ArangoDB
Awesome - thanks :)

/Julian
Reply all
Reply to author
Forward
0 new messages