1 / 19

Introduction to the SharePoint 2013 REST API by Quontra

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.

Download Presentation

Introduction to the SharePoint 2013 REST API by Quontra

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to the SharePoint 2013 REST APIByQuontraSolutions Email : info@quontrasolutions.com Call us : 404-900-9988 WebSite : www.quontrasolutions.com

  2. REST and ODATA Overview • SharePoint 2013 REST API • Demos AGENDA

  3. 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

  4. Odata is a standardized REST API for Data Access • ODATA API maps CRUD operations to HTTP verbs • http://www.odata.org What is OData?

  5. 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

  6. 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

  7. $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

  8. DEMO

  9. Fiddler • Core jQuery library • Browser developer tools • Advanced REST Client (Chrome App) • Postman (Chrome App) Critical Tools

  10. 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

  11. $.ajax() function is part of the core jQuery library • URI end point • Accept header: application/json;odata=verbose AJAX Calls

  12. 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

  13. You must include item type metadata for inserts & updates • All write operations must pass valid request digest value Creating / Updating

  14. 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

  15. Creating list items

  16. Delete list items

  17. Update List Items

  18. REST API does have support for • Managed Metadata • Workflows • Lacks batching support * Current REST Issues

  19. Thank You!

More Related