[open-science-dev] PyBossa API can search in the DB
Daniel Lombraña González
teleyinex at gmail.com
Fri May 4 09:09:02 UTC 2012
Dear all,
In the last days I've been working in adding the possibility of searching
domain objects via the API. I submitted the code today to the repository
(including the unit tests and documentation) and you can test it in
pybossa.com.
For example, if you want to get all the TaskRuns (or answers submitted by
the users) for a given application you can do the following:
1.- Get the application id:
http://pybossa.com/api/app?short_name=melanoma -> returned id = 12
2.- Now get the results for the application:
http://pybossa.com/api/taskrun?app_id=12
3.- If you want, you can limit the amount of results:
http://pybossa.com/api/taskrun?app_id=12&limit=20
If you need help or more info, do not hesitate and send me an e-mail!
Cheers,
Daniel
--
··························································································································································
http://github.com/teleyinex
http://www.flickr.com/photos/teleyinex
··························································································································································
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
··························································································································································
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/open-science-dev/attachments/20120504/151fd89f/attachment.html>
More information about the open-science-dev
mailing list