REST service with custom document type

Ayoub Ag. asked on August 6, 2015 14:39

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,

Correct Answer

Roman Hutnyk answered on August 7, 2015 04:53

As far as I know, unfortunately it does not. Hierarchy parameter does not apply to documents retrieval, objects only.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Koníček answered on August 12, 2015 14:42 (last edited on August 12, 2015 14:42)

Hi,

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

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.