Ticket #109 (closed enhancement: fixed)
Tag search in the REST API
Reported by: | dread | Owned by: | rgrp |
---|---|---|---|
Priority: | awaiting triage | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | Repository: | ||
Theme: |
Description
Similar to ticket:108 but for tags:
/api/search/tag?q
For tags search is extremely simple since you can only search by name.
Possible Extras
- Allow "exotic" ordering of results e.g. ordering by number of packages with that tag.
- Return this number with tag list.
Change History
Note: See
TracTickets for help on using
tickets.
This is effectively implemented by the util API;
http://knowledgeforge.net/ckan/hg/file/tip/doc/api/version2.rst
John has a separate proposal to move the util API into the REST API but that is a different discussion.
Here's how you can now search on tags:
/api/2/util/tag/autocomplete?incomplete=ru