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 - fields, to filter out which fields are returned #26

Open joeflack4 opened 6 years ago

joeflack4 commented 6 years ago

Example syntax

Returns most verbosely; including all possible fields.

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

Returns only the fields "id" and "name" for the "survey" resource, and uses default behavior for other resources.

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