datopian / frontend-v2

CKAN / Data Portal frontend as microservice in pure Javascript (Node).
http://tech.datopian.com/frontend/
MIT License
38 stars 18 forks source link

POST vs GET requests in DMS #158

Closed EvgeniiaVak closed 4 years ago

EvgeniiaVak commented 4 years ago

Some DMS methods use POST requests to get data:

https://github.com/datopian/frontend-v2/blob/61000d863d9af71a244b68a4456ec93c54704e24/lib/dms.js#L18-L22

Which works in most of the cases, but sometimes CKAN instances block POST requests. My suggestion would be to update those methods to call GET requests, as described in CKAN docs - https://docs.ckan.org/en/2.8/api/index.html#get-able-api-functions.