The following endpoints should closely match the Citizen Science platform.
GET http://brightpoint.herokuapp.com/api/v1/subjects.json
To fetch the next subject, replace :previous_subject in the below endpoint.
GET http://brightpoint.herokuapp.com/api/v1/subjects/:previous_subject/next.json
GET http://brightpoint.herokuapp.com/api/v1/subjects/:subject_id/classifications.json
http://brightpoint.herokuapp.com/api/v1/subjects/:subject_id/classifications/new.json
With params:
- started: timestamp
- ended: timestamp
- annotations: array of annotations containing a start and end x-coordinate
For example:
curl -F 'started=1337508679' \
-F 'ended=133750467' \
-F 'annotations[]={start:41750, end:51297}' \
-F 'annotations[]={start:475, end:41750}' \
http://brightpoint.herokuapp.com/api/v1/subjects/1/classifications/new.json
GET http://brightpoint.herokuapp.com/api/v1/data_points.json?start_point=390&size=100
GET http://brightpoint.herokuapp.com/api/v1/chromosome/chr1.json?size=100