10
Get Some REST Building Dynamic Add-Ins Using the Rest API’s Tweet this talk #UConnect @eshupps Eric Shupps SharePoint MVP

Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

Embed Size (px)

Citation preview

Page 1: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

Get Some RESTBuilding Dynamic Add-Ins Using the Rest API’s

Tweet this talk

#UConnect

@eshupps

Eric ShuppsSharePoint MVP

Page 2: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

@eshupps sharepointcowboywww.sharepointcowboy.com

slideshare.net/eshupps linkedin.com/in/eshupps

Eric ShuppsSharePoint Server MVP

Page 3: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

HTTP-based web service architecture that

uses nouns and verbs to define operations

Noun: “Items”

Verbs: GET, POST, PUT, DELETE

OData provides metadata, object typing and

query semantics for underlying data

structure (WCF data services)

/items(0)

Client Object Model service (client.svc)

processes queries, interacts with server OM,

returns formatted response (JSON, XML)

/items/GetByTitle(‘foo’)

Page 4: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

http://contoso/_api/items/GetById(1)?$select=Title,ID

Location Service Resource Path Query Options

Page 5: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API
Page 6: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

• SP.RequestExecutor

• AppWeb = Proxy to HostWeb

• accept: “application/json;odata=verbose”

• accept: “application/json:odata=nometadata”

Page 7: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API
Page 8: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

• Used to prevent replay attacks

• Updates will fail without digest value

• Local

• $("#__REQUESTDIGEST").val()

• Remote

• POST to /_api/contextinfo

Page 9: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API
Page 10: Get Some Rest - Taking Advantage of the SharePoint 2013 REST API

Description Link

Programming Using the SharePoint 2013 REST Service http://bit.ly/TUwC9N

OData URI Conventions http://bit.ly/Ytgdz4

Using the SharePoint 2013 REST Service http://bit.ly/YPHif5

SharePoint 2013 Search REST API http://bit.ly/ZqzOuM

Configuring SharePoint 2013 Search REST for Anonymous Users http://bit.ly/152vFoy

SharePoint 2013 REST TypeScript Library http://sprestts.codeplex.com