qirest: Quantitative Imaging Profile REST server¶
Synopsis¶
The Quantitative Imaging Profile REST server serves data for the Quantitative Imaging Profile (QiPr) web application.
API: | https://qiprofile-rest.readthedocs.org/en/latest/api/index.html |
---|---|
Git: | https://github.com/ohsu-qin/qirest |
Installation¶
Usage¶
Start MongoDB:
mongod&
Run the following command to display the REST server commands and options:
qirest --help
Start the REST server:
qirest
Alternatively, the server can be started in development mode with the
--development
option:qirest --development
The data model is described in the REST client documentation. The REST API is described in the Eve Features documentation. For example, the following command returns the JSON list of all subjects for a server running on the local machine:
curl -i http://localhost:5000/subject
Development¶
The project is cloned, tested, documented and released as described in the qipipe documentation Development section [1].
A sample database can be created by running the following command in
the local qirest
project directory:
./qirest/test/helpers/seed.py
Footnotes
[1] |
|