Upload
eric-shupps
View
339
Download
1
Embed Size (px)
Citation preview
Get Some RESTBuilding Dynamic Add-Ins Using the Rest API’s
Tweet this talk
#UConnect
@eshupps
Eric ShuppsSharePoint MVP
@eshupps sharepointcowboywww.sharepointcowboy.com
slideshare.net/eshupps linkedin.com/in/eshupps
Eric ShuppsSharePoint Server MVP
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’)
http://contoso/_api/items/GetById(1)?$select=Title,ID
Location Service Resource Path Query Options
• SP.RequestExecutor
• AppWeb = Proxy to HostWeb
• accept: “application/json;odata=verbose”
• accept: “application/json:odata=nometadata”
• Used to prevent replay attacks
• Updates will fail without digest value
• Local
• $("#__REQUESTDIGEST").val()
• Remote
• POST to /_api/contextinfo
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