Thursday, May 14, 2020

What are the advantages of using Rest Api instead of using JSOM.

Ans:- 1) The advantages of using REST is that you don’t have to add references to any SharePoint 2013 libraries or client assemblies. Instead, you make HTTP requests to the appropriate endpoints to retrieve or update SharePoint entities, such as webs, lists, and list items.
In jsom, SP.js files need to be loaded before the code execution, but in Rest API no such .js files are required.

2) Another advantages of Rest API in SharePoint is that, Rest API is easier to work and even you can use the browser to see the result and to test them.

3) Rest Api return data in JSON format which is easy to read. 

No comments:

Post a Comment