Contents
The endpoints in the SharePoint REST service correspond to the types and members in the SharePoint client object models. By using HTTP requests, you can use these REST endpoints to perform typical CRUD ( Create, Read, Update, and Delete) operations against SharePoint entities, such as lists and sites.
For accessing SharePoint resources by using REST API, at first we have to find the appropriate endpoints. The following table demonstrates the endpoints associated with CRUD operation in a list. Getting a list details by its title and updating it as well. If anyone changes your list title, your code will break.
What do you need to know about CRUD operation?
The target audiences must know OData (Open Data Protocol is an OASIS standard that defines the best practice for building and consuming RESTful APIs). For making things easy, please consider we have the following two lists ( SpTutorial & SpTutorialParent) where we will perform CRUD operation.
How to see blank fields in multi-line rich text editor?
Add a new item to the list. This works as expected, on the new form you see all the fields blank as it should. Save the new item. Go back to the item in view/display form and we can see the data entered in all the fields. we’re good so far.
Is there a REST API for SharePoint 2013?
The SharePoint 2013 environment adds the ability for you to remotely interact with SharePoint sites using REST. So you can talk to SharePoint objects using any technology that supports standard REST capabilities. In this way, SharePoint data can be accessed anywhere and everywhere.
For a sample that shows you how to do many of these operations in the context of an ASP.NET web application written in C#, see SharePoint-Add-in-REST-OData-BasicDataOperations. For information about the sets of APIs available on the SharePoint platform, see Choose the right API set in SharePoint.
You can perform basic create, read, update, and delete (CRUD) operations by using the Representational State Transfer (REST) interface provided by SharePoint. The REST interface exposes all the SharePoint entities and operations that are available in the other SharePoint client APIs.