cancel
Showing results for 
Search instead for 
Did you mean: 

RESTful management of aspects?

chuyser
Champ in-the-making
Champ in-the-making
I would like to be able to use the RESTful API to set a (custom) categorization aspect on a file I've uploaded. I haven't had any luck so far finding the RESTful interface for this. I do see that there is an action (addAspect) available via the JavaScript API.

Is there a RESTful interface exposed for this? If not, would my best bet be to use the JavaScript API and the script command processor? Or would use of the Alfresco OpenCMIS extension be the better vehicle?

I am using Alfresco Community Edition 4.0.e.

Thanks,
Cindy Huyser
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
If you are using the RESTful API, I assume your code is running remote. Therefore, I will always recommend that people start with OpenCMIS (and the extension, in your case, because you are working with aspects) and use that. It is easy to add an aspect to an object and set aspect-defined properties through OpenCMIS with the extension.

If it does not work for what you need to do, however, then you should write a web script.

Jeff