This is a migrated thread and some comments may be shown as answers.

Javascript SDK or REST API?

1 Answer 61 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel
Top achievements
Rank 1
Daniel asked on 31 Dec 2014, 02:18 PM
Hi, 

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,
Daniel

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Jan 2015, 09:51 AM
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.

Regards,
Tina Stancheva
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
General Discussion
Asked by
Daniel
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or