Created by: Matt Farmer on 20-01-2013 04:20:41 PM Is it possible to get a list of used tags via the api?
Subject: RE: Get list of tags Replied by: Adrienne Moherek on 23-01-2013 11:36:47 AM Hi Matt, Yes, you can get a list of used tags by using the search API. Here is an example: GET http://<server>/api/quad/rest/search?q=tag
Thanks, Adrienne
Subject: RE: Get list of tags Replied by: Matt Farmer on 28-01-2013 12:28:58 PM Thanks for the reply. I tried what you suggested but only get the following: { "feed":{ "author":{ "name":"http://quad.cisco.com" }, "title":{ "content":"http://quad.cisco.com OpenSearch", "type":"text" }, "updated":"2013-01-28T18:22:36.699Z", "xmlns":"http://www.w3.org/2005/Atom" } } I can see from the documents you can do searches specifying specific tags such as q=tag:ruby but nothing for all tags used like /api/quad/rest/tags
Subject: RE: Get list of tags Replied by: Adrienne Moherek on 13-02-2013 04:22:00 PM Hi Matt,
If you want to retrieve all tags, you can use this: GET http://<server>/api/quad/rest/search?q=tag or GET http://<server>/api/quad/rest/search?q=tag&filterBy=information&filterValue=post This will return all posts with a tag. However, if the post has the word "tag" in the title or body, it will show up in the response. You can then run a query to filter out those results and only get values where you see "cisco:tags" in the response. I've tested this 3.1 and it works. What have you put tags on? If they are posts, make sure they are public or shared with the user you're testing with.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: