Get list of categories using REST API

cancel
Showing results for 
Search instead for 
Did you mean: 
redflow
Active Member II

Get list of categories using REST API

Hi all,

I'm using Alfresco Community 5.2 and I need to have the list of categories using REST API.

I saw in the old documentation that it was possible in the past but it seems impossible with the new version of API....or I'm doing something wrong?

I'd like to be able to use REST API to treat categories as tags (get the list, add, remove from a node, etc).

Is it possibile to do this with CMIS?

Thank you!

2 Replies
rohit9637
Established Member

Re: Get list of categories using REST API

If you want to get the list of categories using REST API, refer the discussion on given link.https://community.alfresco.com/thread/214344-get-all-the-categories-using-the-restfull-api

afaust
Master

Re: Get list of categories using REST API

The question was about the new v1 ReST API. There is no operation (yet) specific to categories, but you should be able to use the Search v1 REST API to query the list of categories via an Alfresco FTS query, i.e.

PATH:"/my:classificationAspect/*"

or (for pre-defined categories)

PATH:"/cm:generalClassifiable/cm:Regions/*"