[ckan-dev] Tags REST API update

Adrià Mercader amercadero at gmail.com
Thu Jul 21 14:49:32 UTC 2011


Hi all,
Working on the refactoring of the controllers, I found a small
incongruence in the tags REST API.

In the groups case, if you query:
http://test.ckan.net/api/2/rest/group
you get a list of all group ids, and querying
http://test.ckan.net/api/2/rest/group/0ac963e7-ba29-49bc-83c8-98f8c1991649
gives you the details of the group, including the packages contained

Similarly,
http://test.ckan.net/api/2/rest/tag
gives you a list of all the tag names (not ids! Is this intentional?).
But querying a specific tag:
http://test.ckan.net/api/2/rest/tag/country-uk
only returns the list of ids of packages that have that tag.

Is anyone against that on the new version of the API /rest/tag/<id>
returns a JSON object with the details of the tag (including of course
the packages)?


Adrià




More information about the ckan-dev mailing list