Get Type Details

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

Get Type Details

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

7 Replies
mikel_asla
Established Member

Re: Get Type Details

Hi

I beleave you mean this

Alfresco Content Services REST API Explorer 

ramprasad
Member II

Re: Get Type Details

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? 

cesarista
Customer
ramprasad
Member II

Re: Get Type Details

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

cesarista
Customer

Re: Get Type Details

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

Regards.

--C.

ramprasad
Member II

Re: Get Type Details

Thanks again.

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

jpotts
Professional

Re: Get Type Details

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.