Thursday, July 14, 2016
SharePoint 2013 REST API - Basic Operations
In earlier blogpost I had covered SharePoint REST implementation with Jquery Ajax. Below example was created based on SharePoint based js library.
I had created a simple aspx page using SharePoint designer that would perform following activities listed below that are targeted towards specific list called as 'PersonInformation' that contains mainly three columns called as Name, Age, Country.
• Insert an item
• Retrieve items
• Search based on list item Id
• Update an item
• Delete an iem
The aspx page is created with html controls and are attached to javascript button click events that would execute SharePoint REST API calls on button click.
For debugging purpose one can use fiddler to identify the reqest and response generated. Various keywords that are used while creating REST API request are detailed in MSDN article.
[code]
<%@ Page Inherits="System.Web.UI.Page" MasterPageFile="~masterurl/default.master" Title="REST Demo" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
[/code]
Labels:
REST API,
SharePoint 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment