Name: NGSSampleManager
Owner: Biological Informatics CoE @ Agriculture and Agri-Food Canada
Owner: Biological Informatics CoE @ Agriculture and Agri-Food Canada
Description: null
Created: 2014-04-05 17:08:53.0
Updated: 2016-11-07 18:40:29.0
Pushed: 2016-11-07 18:40:27.0
Homepage: null
Size: 80
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project is an experiment in the use of flask to provide a RESTful API for querying and managing a database of NGS runs and associated sample metadata.
TODO
TODO
make setup # creates phython virtual env
make test # runs tests
make run # start internal python server; http://localhost:5000
The general syntax for a URL follows (examples below):
| Action | HTTP Request | URI | DATA | | —— | ———— | ———————– | —– | | List | GET | /ngssm/api/v1.0/noun | No | | Get | GET | /ngssm/api/v1.0/noun/id | No | | Update | PUT | /ngssm/api/v1.0/noun/id | YES | | Create | POST | /ngssm/api/v1.0/noun | YES | | Delete | DELETE | /ngssm/api/v1.0/noun/id | No |
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs?plate=46.4
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs/1
curl -u miguel:python -i -H "Content-Type: application/json" -X POST -d '{"plate":"54.1"}' http://localhost:5000/ngssm/api/v1.0/runs
curl -u miguel:python -i -H "Content-Type: application/json" -X PUT -d '{"mid_set":"54.2"}' http://localhost:5000/ngssm/api/v1.0/runs/1
curl -u miguel:python -i -X DELETE http://localhost:5000/ngssm/api/v1.0/runs/3
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples/1
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples?plate=46.4
curl -u miguel:python -i -H "Content-Type: application/json" -X POST -d '{"plate":"54.1"}' http://localhost:5000/ngssm/api/v1.0/samples
curl -u miguel:python -i -H "Content-Type: application/json" -X PUT -d '{"plate":"54.2"}' http://localhost:5000/ngssm/api/v1.0/samples/1
curl -u miguel:python -i -X DELETE http://localhost:5000/ngssm/api/v1.0/samples/3
This project is an experiment in the use of flask to provide a RESTful API for querying and managing a database of NGS runs and associated sample metadata.
TODO
TODO
make setup # creates phython virtual env
make test # runs tests
make run # start internal python server; http://localhost:5000
The general syntax for a URL follows (examples below):
| Action | HTTP Request | URI | DATA | | —— | ———— | ———————– | —– | | List | GET | /ngssm/api/v1.0/noun | No | | Get | GET | /ngssm/api/v1.0/noun/id | No | | Update | PUT | /ngssm/api/v1.0/noun/id | YES | | Create | POST | /ngssm/api/v1.0/noun | YES | | Delete | DELETE | /ngssm/api/v1.0/noun/id | No |
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs?plate=46.4
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/runs/1
curl -u miguel:python -i -H "Content-Type: application/json" -X POST -d '{"plate":"54.1"}' http://localhost:5000/ngssm/api/v1.0/runs
curl -u miguel:python -i -H "Content-Type: application/json" -X PUT -d '{"mid_set":"54.2"}' http://localhost:5000/ngssm/api/v1.0/runs/1
curl -u miguel:python -i -X DELETE http://localhost:5000/ngssm/api/v1.0/runs/3
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples/1
curl -u miguel:python -i http://localhost:5000/ngssm/api/v1.0/samples?plate=46.4
curl -u miguel:python -i -H "Content-Type: application/json" -X POST -d '{"plate":"54.1"}' http://localhost:5000/ngssm/api/v1.0/samples
curl -u miguel:python -i -H "Content-Type: application/json" -X PUT -d '{"plate":"54.2"}' http://localhost:5000/ngssm/api/v1.0/samples/1
curl -u miguel:python -i -X DELETE http://localhost:5000/ngssm/api/v1.0/samples/3