How to get pages based on category attached with the page using rest api?

Shubham Salaria asked on August 10, 2017 13:14

Hi Everyone,

My requirement is to get all the pages attached/tagged with particular category. I'm using angular for front end and using ajax call to get response from kentico. I need to get only those pages which are associated with different categories(more than one).

Recent Answers


Trevor Fayas answered on August 10, 2017 14:18 (last edited on August 10, 2017 15:32)

you can use s where in the parameter of your api call to the rest service, check out Kentico documentation

https://docs.kentico.com/k10/integrating-3rd-party-systems/kentico-rest-service/getting-data-using-rest

if you have the category id you can do a where of (documentid in (select documentid from cms_category where categoryid = 1))

if the query is too complex for the rest service, you can create your own api using a repeater with custom query (using macros to pass a category id or category name into the where condition), format the data into json using the transformation, and then attach the webpart to api converter that's found on the marketplace.

0 votesVote for this answer Mark as a Correct answer

Shubham Salaria answered on August 17, 2017 12:36

Thanks Trevor Fayas,

I'm new to kentico, can you please provide any example means any URL based example

0 votesVote for this answer Mark as a Correct answer

jenn singh answered on November 15, 2017 20:42

I am having the way here to get the choices app cheats online and when we need to get the online game for the coins we have the game hack here.

0 votesVote for this answer Mark as a Correct answer

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