PMA-2020 / pma-api

The best way to programmatically access PMA2020 data.
http://api.pma2020.org
MIT License
1 stars 3 forks source link

Query parameters - filters, to filter data returned #25

Open joeflack4 opened 6 years ago

joeflack4 commented 6 years ago

Example syntax

This would be rather redundant, but it's just an example. First, the data is queried by the survey IDs "PMA2014_BFR1" and "PMA2015_BFR2", but then a filter is applied before the data which is returned, which would only allow "PMA2014_BFR1" to be returned. But such a filter could be applied on all attributes of the data queried or their relations.

http://api.pma2020.org/v1/datalab/data?
survey=PMA2014_BFR1,PMA2015_BFR2&
indicator=cp_mar&
characteristicGroup=parity&
overTime=false&
filters=[survey.id=PMA2014_BFR1]  <-----