Create Custom API(outside kentico) to get kentico Data(Pages, Custom tables, permission etc.

Shubham Salaria asked on August 9, 2017 09:33

Hi Everyone,

I'm creating one front end application using Angularjs. My front end page will get data from Kentico CMS. Data could be Pages, Roles, Custom Tables,Permission etc.

Can you please help me so that I can get data from Kentico using Angular http request or ajax call. Is there any way to get data from Kentico using deafult api(any search api) or I'have to create intermediate API layer which get the request from angularjs and respond back to the front end by manipulating/accessing Kentico data.

Thanks Shubham

Recent Answers


Dawid Jachnik answered on August 9, 2017 10:18

Hello, In Kentico there's REST service that allow you to do CRUD operations on any object or page within the system. Everything related to REST you will find in documentation https://docs.kentico.com/k10/integrating-3rd-party-systems/kentico-rest-service

0 votesVote for this answer Mark as a Correct answer

Shubham Salaria answered on August 9, 2017 11:01

Hi Dawid,

Thanks for you prompt reply.

Do we have any pros and cons of using kentico restful api or customapi(middle ware using inbuild kentico api). It will great if you can provide the same.

Thanks

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 9, 2017 14:10

rest api gives basic read write abilities to Kentico objects fast with built in security, but usually it's one object at a time so you may need to make multiple calls to get all the data you need.

custom api you can control what you give so more from to mix content but you have to build it.

if you go with the custom api, check out the webpart to api (turns a repeater content into an api) or the ajax helper module on the marketplace (basic sql query with single parameter input to api)

0 votesVote for this answer Mark as a Correct answer

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