Open joeflack4 opened 6 years ago
Survey collection resource does not include URL keys for instances shown in results.
results
surveys
countries
In contrast, an example of a resource where this appears to have been implemented correctly is: http://api.pma2020.org/v1/indicators
http://api.pma2020.org/v1/surveys
{ "metadata": { ... }, "resultSize": 48, "results": [ { "country.id": "GH", "country.label": "Ghana", "country.order": 4, "country.region": "Africa", "country.subregion": "Western Africa", "end_date": "2013-10-01", "id": "PMA2013_GHR1", "order": 101, "pma_code": "GHR1", "round": 1, "start_date": "2013-09-01", "type": "PMA2020", "year": 2013 "url": "http://api.pma2020.org/v1/surveys/PMA2013_GHR1" }, ...
{ "metadata": { ... }, "resultSize": 48, "results": [ { "country.id": "GH", "country.label": "Ghana", "country.order": 4, "country.region": "Africa", "country.subregion": "Western Africa", "end_date": "2013-10-01", "id": "PMA2013_GHR1", "order": 101, "pma_code": "GHR1", "round": 1, "start_date": "2013-09-01", "type": "PMA2020", "year": 2013 }, ...
Description
Survey collection resource does not include URL keys for instances shown in
results
.Affected resources
surveys
countries
In contrast, an example of a resource where this appears to have been implemented correctly is: http://api.pma2020.org/v1/indicators
Expected behavior
http://api.pma2020.org/v1/surveys
Actual behavior
http://api.pma2020.org/v1/surveys