Hi,
I've been trying to use the REST service on kentico-7 to get filtered content of some documents. The documents are a custom document type.
I have followed the instructions to configure the REST service found here:
link text
and I can run basic requests such as:
http://localhost/KenticoCMS/rest/content/site/sitename/en-ca/document/childrenof/NodeAliasPath/?format=json&Where=Published=1&Hierarchy=true
but it doesn't return the data in the hierarchical structure, the returned structure ii the same as if i don't append the Hierarchy parameter to my request. all data is grouped by class name in json object.
Does Kentico REST service support hierarchical structure on custom document type? If so, how can I get it to work?
Thanks for you help,
As far as I know, unfortunately it does not. Hierarchy parameter does not apply to documents retrieval, objects only.
Roman is correct, hiearchy parameter is applied only to objects. It is described in our documentation - https://docs.kentico.com/display/K82/Getting+data+using+REST . You can see that hierarchy parameter is in the Objects section.
Best regards, Roman Konicek
Please, sign in to be able to submit a new answer.