Query Dictionary

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

Query Dictionary

Jump to solution

Hi,

Guys I want to discovery a parent type of my custom type.

How can I discovery the parent? There is some rest operation?

Thanks

1 Solution
6 Replies
calvo
Senior Member

Re: Query Dictionary

Jump to solution

Hi,

One of the options perfect explained by Cesar Capillas and I usually use is:

http://localhost:8080/alfresco/service/api/dictionary 

I think is an easy and fast option to recover information:
For example, trying to find the custom type "Contract", I obtain de parent type "cm:content"

"name": "con:contract",       "isAspect": false,       "isContainer": false,       "title": "contract",       "description": "Custom type contract",       "parent":       {          "name": "cm:content",          "title": "content",          "url": "/api/classes/cm_content"       }

Regards,

maiconramones
Active Member II

Re: Query Dictionary

Jump to solution

Very nice Douglas.

Thank you so much!

maiconramones
Active Member II

Re: Query Dictionary

Jump to solution

Very nice Cesar.

Thank you so much!

maiconramones
Active Member II

Re: Query Dictionary

Jump to solution

Only a small adjust.

In Alfresco 5.2 the url is: http://x.x.x.x:8080/alfresco/s/api/classes/sc_identificacao 

Pay attention the letter 's' I don't know why but I see on the scripts.

cesarista
Customer

Re: Query Dictionary

Jump to solution

Hi Maicon:

It should work both "s" or "service" in the url.

Regards.

--C.