<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #109: Tag search in the REST API</title>
    <link>http://localhost/ticket/109</link>
    <description>&lt;p&gt;
Similar to &lt;a class="closed ticket" href="http://localhost/ticket/108" title="enhancement: Package search in the REST API (closed: fixed)"&gt;ticket:108&lt;/a&gt; but for tags:
&lt;/p&gt;
&lt;p&gt;
/api/search/tag?q
&lt;/p&gt;
&lt;p&gt;
For tags search is extremely simple since you can only search by name.
&lt;/p&gt;
&lt;h2 id="PossibleExtras"&gt;Possible Extras&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;Allow "exotic" ordering of results e.g. ordering by number of packages with that tag.
&lt;/li&gt;&lt;li&gt;Return this number with tag list.
&lt;/li&gt;&lt;/ul&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/109</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Wed, 08 Dec 2010 17:30:57 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/109#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/109#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is effectively implemented by the util API;
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://knowledgeforge.net/ckan/hg/file/tip/doc/api/version2.rst"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://knowledgeforge.net/ckan/hg/file/tip/doc/api/version2.rst&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
John has a separate proposal to move the util API into the REST API but that is a different discussion.
&lt;/p&gt;
&lt;p&gt;
Here's how you can now search on tags:
&lt;/p&gt;
&lt;p&gt;
/api/2/util/tag/autocomplete?incomplete=ru
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>