Skip to content

Register a new plugin app with the ChRIS store API

Jorge edited this page Mar 19, 2018 · 4 revisions

Register a plugin in the ChRIS store

First save the plugin representation json file by running the plugin app with the --savejson flag

For instance:

docker run --rm -v /tmp/json:/json fnndsc/pl-simplefsapp simplefsapp.py --savejson /json

Make a POST request to register the new plugin app in the store

For instance, using the httpie client and assuming that the ChRIS store service is running at localhost:8010 and that your store account is cubeadmin:cubeadmin1234 the plugin representation json file should be uploaded to the ChRIS Store as part of the POST request:

http -a cubeadmin:cubeadmin1234 -f POST http://localhost:8010/api/v1/ dock_image=fnndsc/pl-simplefsapp descriptor_file@/tmp/json/SimpleFSApp.json public_repo=https://github.com/FNNDSC/pl-simplefsapp name=simplefsapp