cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of categories using REST API

redflow
Confirmed Champ
Confirmed Champ

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 2

rohit9637
Star Contributor
Star Contributor

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
Legendary Innovator
Legendary Innovator

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/*"