Javascript SDK or REST API?

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    9 posts
    Member since:
    Dec 2014

    Posted 31 Dec 2014 Link to this post


    More of a general dev/guidence question than anything.

    I am currently building a web project using Backend Services and utilising Kendo UI components.
    In the project I am developing with the Javascript SDK but looking through the documentation have just noticed the REST API offers a few more bits of functionality. 

    I guess the question is, what would be the perfect environment for a web based project, would it be using the Javascript SDK for CRUD and also connecting to Kendo UI, or using REST for the CRUD actions? When is is suitable to use one over the other when they can both achieve similar things?

    Thanks for any help,
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 02 Jan 2015 Link to this post

    Hi Daniel,

    The JavaScript SDK library essentially is an abstraction layer over Telerik Backend Services REST API. It provides a simple API for CRUD operations for plain objects and integration with the Kendo UI framework. This is why usually in a web based project utilizing Kendo UI, it is easier to use the JS API.

    At the same time, as you noted for some of the functionality available through the REST API, there are no helper methods in the JS SDK. In such cases you will indeed need to use the REST API directly. But in all other cases, I would recommend using the JavaScript SDK library as it comes with a ready-to-use API which you can directly plug into your application without having to do any additional plumbing.

    Tina Stancheva
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
Back to Top