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

Adrià Mercader adria.mercader at okfn.org
Wed Apr 23 10:50:46 UTC 2014


As Mark mentions, use of the legacy API is not encouraged

On 23 April 2014 10:30, Mark Wainwright <mark.wainwright at okfn.org> wrote:
>
> 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.
This used to be the case, but then again I don't see why this should
not work on data.gov:
{
    "method": "POST",
    "url": "http://catalog.data.gov/api/3/action/group_show",
    "params": {
        "id": "law1129"
    },
    "status": "400 Bad Request",
    "response": "Bad request - JSON Error: No request body data"
}

I think that you might be right and there might be some customizations
in place in this particular instance. Restricting package_list is a
quite common one because on large instances it can be resource
intensive.


Adrià



More information about the ckan-dev mailing list