cancel
Showing results for 
Search instead for 
Did you mean: 

Query Dictionary

maiconramones
Confirmed Champ
Confirmed Champ

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 ACCEPTED ANSWER
6 REPLIES 6

Very nice Cesar.

Thank you so much!

calvo
Star Collaborator
Star Collaborator

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
Confirmed Champ
Confirmed Champ

Very nice Douglas.

Thank you so much!

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
World-Class Innovator
World-Class Innovator

Hi Maicon:

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

Regards.

--C.