cancel
Showing results for 
Search instead for 
Did you mean: 

Get Type Details

ramprasad
Champ in-the-making
Champ in-the-making

Are there REst APIs to look at details of a Type like getTypeProperties(), getAspects(), getParentAssociations(),getChildAssocs()?

7 REPLIES 7

mikel_asla
Star Contributor
Star Contributor

Hi

I beleave you mean this

Alfresco Content Services REST API Explorer 

ramprasad
Champ in-the-making
Champ in-the-making

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? 

ramprasad
Champ in-the-making
Champ in-the-making

Yes. Thank you. Is there a comparable Restful API for doing this?

cesarista
World-Class Innovator
World-Class Innovator

Well, the first option is in fact based on a webscript / REST service.

Regards.

--C.

ramprasad
Champ in-the-making
Champ in-the-making

Thanks again.

One last question: Is there a way to include inherited attributes, associations and aspects?

jpotts
World-Class Innovator
World-Class Innovator

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.