Ticket #109 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by thejimmyg

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.