10-15-2017 07:40 PM
Are there REst APIs to look at details of a Type like getTypeProperties(), getAspects(), getParentAssociations(),getChildAssocs()?
10-16-2017 04:24 AM
10-17-2017 12:17 AM
Sorry I was not clear. Let us say I want to get all properties and associations of type cm:content (I am at the type level and not at an instance level). Which Restful API should I use to get this information dynamically?
10-17-2017 05:37 AM
Hi:
Do you refer to this ?
Regards.
--C.
10-17-2017 10:19 AM
Yes. Thank you. Is there a comparable Restful API for doing this?
10-17-2017 12:23 PM
Well, the first option is in fact based on a webscript / REST service.
Regards.
--C.
10-17-2017 01:47 PM
Thanks again.
One last question: Is there a way to include inherited attributes, associations and aspects?
10-17-2017 03:11 PM
An alternative to using Alfresco native APIs for this is to use CMIS. For example, here are some Java examples that use CMIS to query for type definitions:
Working with Types - Apache Chemistry Samples
And with the CMIS browser binding you can query the dictionary service in a RESTful way. You can see an example request/response log by looking at the getTypeDefinition section in the CMIS specification document.
Explore our Alfresco products with the links below. Use labels to filter content by product module.