[ckan-dev] Accessing Data.gov's CKAN API through JavaScript

Mark Wainwright mark.wainwright at okfn.org
Wed Apr 23 09:30:45 UTC 2014


> Rest API (version 2):
> List groups *doesn't work* - http://catalog.data.gov/api/2/rest/group
> Show group *works* - http://catalog.data.gov/api/2/rest/group/law1129

These both work for me, *but* use of old versions of the API is not encouraged:

http://docs.ckan.org/en/latest/api/legacy-api.html

> Action API (version 3):
> List groups *works* - http://catalog.data.gov/api/3/action/group_list
> Show group *doesn't work* -
> http://catalog.data.gov/api/3/action/group_show?id=law1129

I seem to recall that there was a problem with early 2.x versions that
the API required you to use POST where the docs claim you can use GET,
or something like that. Hopefully an actual developer can remember
what I'm talking about.

Mark


-- 
Open Data Evangelist
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/  |  @opendatamark



More information about the ckan-dev mailing list