7
Gathering SharePoint 2010 REST data with JavaScript/JQuery Craig Pilkenton SharePoint Engineer

SharePoint 2010 REST with JavaScript and jQuery

Embed Size (px)

DESCRIPTION

SharePoint 2010 REST with JavaScript and jQuery

Citation preview

Page 1: SharePoint 2010 REST with JavaScript and jQuery

Gathering SharePoint 2010 REST data with

JavaScript/JQuery

Craig PilkentonSharePoint Engineer

Page 2: SharePoint 2010 REST with JavaScript and jQuery

Intro and BackgroundIntro and BackgroundCraig PilkentonFinancial Partners, [email protected]://www.linkedin.com/in/craigpilkenton

•SharePoint Engineer•Senior SharePoint Consultant at EMC Consulting•SharePoint Engineer at MassMutual•Working with SharePoint since it was a beta product in 2000 (Tahoe)

•Microsoft Certified Technology Specialist o (SharePoint 2010/2007)

Page 3: SharePoint 2010 REST with JavaScript and jQuery

What is REST in What is REST in SharePoint?SharePoint?

• Representational State Transfer plus HTTP can be thought of as The Web itself

• A client can either be in transition between application states or "at rest“, able to interact with its user, but creates no load and consumes no per-client storage

• Fully-realized, it is oData (Open Data Protocol): REST + AtomPub + Modeling + URI Semantics

Page 4: SharePoint 2010 REST with JavaScript and jQuery

What does it look like?What does it look like?• It looks like RSS feeds, which is just XML!!• Try this yourself:

http://odata.netflix.com/Catalog/Titles?$top=1

Page 5: SharePoint 2010 REST with JavaScript and jQuery

So how do we access it?So how do we access it?• For SharePoint 2010, we change our URL’s to

access the always-on serviceo http://z04-w1:50000/Examples/_vti_bin/ListData.svc/

Page 6: SharePoint 2010 REST with JavaScript and jQuery

Get to the Demo!!Get to the Demo!!

Page 7: SharePoint 2010 REST with JavaScript and jQuery

ResourcesResources• NothingButSharePoint.com:

o REST APIs

• Scott Currier’s Blog:o REST and SharePoint 2010 Quick Start Guide

• WCF Data Services Quick Starto http://msdn.microsoft.com/en-us/data/ee720180

• Using Microsoft ADO.NET Data Serviceso http://msdn.microsoft.com/en-us/library/cc907912.aspx

Craig Pilkenton, Financial Partners, [email protected]://www.linkedin.com/in/craigpilkenton