Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge

Slides:



Advertisements
Similar presentations
Server Access The REST of the Story David Cleary
Advertisements

SharePoint and Knockout for the REST of Us
OASIS OData Technical Committee. AGENDA Introduction OASIS OData Technical Committee OData Overview Work of the Technical Committee Q&A.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Solution Architect,Microsoft.
#spsevents #spsphx SPS EVENTS PHX Know REST for the Query AN INTRODUCTION TO REST FOR SHAREPOINT 2013 ERIC J OSZAKIEWSKI, MCTS, MS, MCPS.
Microsoft ® Official Course Client-Side SharePoint Development SharePoint Practice Microsoft SharePoint 2013.
Query Verb Proposal Ashok Malhotra, Oracle
ADVANTAGE WEBAPI PETER FUNK SOFTWARE ENGINEER, ADVANTAGE R&D MAY 20, 2011.
RESTful Services with ASP.NET Web API Vladimir Georgiev Technical Trainer & Software Developer
Microsoft ® Official Course Interacting with the Search Service Microsoft SharePoint 2013 SharePoint Practice.
Web Services 101 James Payne Managing Director for New Media / Advancement July 30, 2013.
© 2011 IBM Corporation Overview on Modeling RESTful Services August, 2011 Manoj Paul, Software Developer, Rational,
Integrating Complementary Tools with PopMedNet TM 27 July 2015 Rich Schaaf
RESTful Web Development With Nodejs and Express. REST Stands for REpresentational State Transfer Has the following constraints: ◦Client-Server ◦Stateless.
Building Dynamic Applications on both Office 365 and on-premise.
NEW JERSEY SHAREPOINT USER GROUP Different SharePoint discussions each month on various topics. Announced on meetup.com Different SharePoint discussions.
Beyond the UI Using Tools to Improve Testing Jeremy Traylor
© 2011 Autodesk Automating Autodesk® Revit® Server Rod Howarth Software Development Manager – Bornhorst + Ward.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP
COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.
CollectionSpace Service REST-based APIs June 2009 Face-to-face Aron Roberts U.C. Berkeley IST/Data Services.
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Tom Castiglia Hershey Technologies
Open Data Protocol * Han Wang 11/30/2012 *
Chapter 8 Cookies And Security JavaScript, Third Edition.
Or, Hey can’t we just do it using HTTP for the envelope?
Chapter 6 Server-side Programming: Java Servlets
1 Seminar on Service Oriented Architecture Principles of REST.
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
Azure in a Day Azure Tables Module 1: Azure Tables Overview Module 2: REST API – DEMO: Azure Table REST API Module 3: Querying Azure Tables – DEMO: Querying.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
WORKING WITH THE “CALL HTTP WEB SERVICE” WORKFLOW ACTIVITY Derek Nishino Nishino Consulting
ICM – API Server & Forms Gary Ratcliffe.
RESTful Web Services What is RESTful?
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
SHAREPOINT SATURDAY PRESENTATION by Keith Rimington REAL EXPERIENCES WITH ANGULARJS AND SHAREPOINT.
Creating REST Services with WCF and EF. About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools.
© 2010 IBM Corporation RESTFul Service Modelling in Rational Software Architect April, 2011.
THE API AN INTRODUCTION TO THE MINISTRYPLATFORM APPLICATION PROGRAMMING INTERFACE STEPHEN WAREHAM.
Redmond Protocols Plugfest 2016 Andrew Davidoff Mail, Calendar, and Contacts Graph API Demonstration Senior Software Engineer.
DOM, jQuery, AJAX, REST Using Kinvey as JS Back-End
National College of Science & Information Technology.
Data and tools on the Web have been exposed in a RESTful manner. Taverna provides a custom processor for accessing such services.
API Security Auditing Be Aware,Be Safe
z/Ware 2.0 Technical Overview
CSOM and REST Name Title Company.
Beyond the BDC\BCS Model
Node.js Express Web Services
An introduction to REST for SharePoint 2013
Hypertext Transfer Protocol
What is REST API ? A REST (Representational State Transfer) Server simply provides access to resources and the REST client accesses and presents the.
Content Providers.
WEB API.
Build a RESTful service with OData
02 | Web API Basic Design Jeremy Likness | Principal Architect
REST Client Tutorial by Pavan Ethic Coder
03 | Client Side SharePoint Development
SharePoint Guy, Protiviti
Web API with Angular 2 Front End
Microsoft Graph – Intune API’s
Chengyu Sun California State University, Los Angeles
Web APIs In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application.
Chengyu Sun California State University, Los Angeles
WCF Data Services and Silverlight
Informer 5 API How to get connected and start integrating
.NET Framework V3.5+ & RESTful web services
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Introduction to the SharePoint 2013 REST API

2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge Leader of the Baton Rouge SharePoint User Group –

3 AGENDA REST and ODATA Overview SharePoint 2013 REST API Demos

4 REST Introduction 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

5 What is OData? Odata is a standardized REST API for Data Access ODATA API maps CRUD operations to HTTP verbs

6 HTTP Methods 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

7 OData URIs URI has three parts Service root URI Resource path Query string options Service Root URI Resource Path to a SharePoint Object Query String Options

8 OData Query Option Parameters $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

9 DEMO

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

11 Request Headers 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-RequestDigest Encrypted security value required for updates IF-MATCH Passes Etag value to control optimistic concurrency

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

13 Request Digest Provides security mechanism to protect against replay attacks SharePoint pages has element with ID __REQUESTDIGEST Passed in request by using X-RequestDigest header /_api/contextinfo

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

15 List Item Type Metadata Each SharePoint list has a unique type for its list items String based type value must be passed will all inserts and updates

16 Creating list items

17 Delete list items

18 Update List Items

19 Current REST Issues REST API does have support for Managed Metadata Workflows Lacks batching support *

20 Questions?

21