210 likes | 499 Views
SharePoint online training offered by Quontra Solutions with special features having Extensive Training will be in both SharePoint Online Training and Placement. We help you in resume preparation and conducting Mock Interviews. Emphasis is given on important topics that were required and mostly used in real time projects. Quontra Solutions is an Online Training Leader when it comes to high-end effective and efficient IT Training. We have always been and still are focusing on the key aspect which is providing utmost effective and competent training to both students and professionals who are eager to enrich their technical skills. Training Features at Quontra Solutions: We believe that online training has to be measured by three major aspects viz., Quality, Content and Relationship with the Trainer and Student. Not only online training classes are important but apart from that the material which we provide are in tune with the latest IT training standards, so a student has not to worry at all whether the training imparted is outdated or latest.
E N D
Introduction to the SharePoint 2013 REST APIByQuontraSolutions Email : info@quontrasolutions.com Call us : 404-900-9988 WebSite : www.quontrasolutions.com
REST and ODATA Overview • SharePoint 2013 REST API • Demos AGENDA
REST = REpresentational State Transfer • A simpler alternative to SOAP based on HTTP request/response pairs • Client sends HTTP requests that target specific resources using unique URIs REST Introduction
Odata is a standardized REST API for Data Access • ODATA API maps CRUD operations to HTTP verbs • http://www.odata.org What is OData?
GET • Returns an item or array of items • POST • Creates a new item • PUT • Updates an item (replaces all fields with default values) • PATCH or MERGE • Updates an item in place (existing values are retained) • DELETE • Deletes an item HTTP Methods
URI has three parts • Service root URI • Resource path • Query string options OData URIs Resource Path to a SharePoint Object Query String Options Service Root URI
$select • Specifies which columns to retrieve • $filter • Selecting what items to retrieve • $orderby • Sorting items • $expand • Retrieve results that are usually deferred • $top • Select how many items to return • $skip • Selecting which row to start at OData Query Option Parameters
Fiddler • Core jQuery library • Browser developer tools • Advanced REST Client (Chrome App) • Postman (Chrome App) Critical Tools
Accept • what type of data you want to receive • Content-type • What type of data you are sending in the request body • X-HTTP-Method • Which operation to perform • X-Request Digest • Encrypted security value required for updates • IF-MATCH • Passes Etag value to control optimistic concurrency Request Headers
$.ajax() function is part of the core jQuery library • URI end point • Accept header: application/json;odata=verbose AJAX Calls
Provides security mechanism to protect against replay attacks • SharePoint pages has element with ID __REQUESTDIGEST • Passed in request by using X-RequestDigest header • <site url>/_api/contextinfo Request Digest
You must include item type metadata for inserts & updates • All write operations must pass valid request digest value Creating / Updating
Each SharePoint list has a unique type for its list items • String based type value must be passed will all inserts and updates List Item Type Metadata
REST API does have support for • Managed Metadata • Workflows • Lacks batching support * Current REST Issues