Gold-Partner: Veranstalter: BI-System mit OData und SharePoint Online Martina Grom & Toni Pohl
Jul 17, 2015
Über unsMartina Grom
Working on:
The Cloud
Office 365 Deployments
Enterprise Social Engagements
Kontakt:
Twitter: @magrom
E-Mail: [email protected]
Blog: http://blog.atwork.at
Facebook: https://www.facebook.com/groups/cloudusergroup/
Über unsToni Pohl
Working on:
The Cloud
Azure
Kontakt:
Twitter: @atwork
E-Mail: [email protected]
Blog: http://blog.atwork.at
Facebook: https://www.facebook.com/groups/cloudusergroup/
OData
The Protocol for REST APIs
An open protocol to allow the creation and consumption
of queryable and interoperable RESTful APIs in a
simple and standard way.
http://www.odata.org/
OData auf einen Blick
Ein OData service liefert per Default Atom XML
Für JSON muss im HTTP Header JSON angegeben werden
OData für Abfragen und auch für CRUD Operationen
(HTTP verbs: GET for reading, PUT for creating, POST for
updating and DELETE for deleting)
OData ist case-sensitive für Properties, filters…
Get started with the SharePoint 2013 REST service
https://msdn.microsoft.com/en-
us/library/office/fp142380.aspx
Grafik: https://msdn.microsoft.com/en-us/library/office/fp142380.aspx
OData in SharePoint 2013:
_api ist das neue _vti_bin/client.svc
Grafik: http://blog.concentra.co.uk/2013/02/06/odata/diagram1/
OData in SharePoint 2013: Service Access Points
Site http://server/site/_api/site
Web http://server/site/_api/web
User Profile
http://server/site/_api/SP.UserProfiles.PeopleManager
Search http:// server/site/_api/search
Publishing http:// server/site/_api/publishing
OData in SharePoint: Query-Beispiele
https://spkonf.sharepoint.com/sites/dev/_api/web
/lists/getbytitle('ratings')/items?$select=Title,RatingSpeaker
/lists/GETbytitle('ratings')/items?$filter=Title eq 'SESSion2‘
/lists/getbytitle('ratings')/items?$top=2&$select=Title
/lists(guid'852d5762-6032-4150-a550-ff01db0c5517')/Items(2)
siehe auch:
https://msdn.microsoft.com/en-us/library/office/fp142385.aspx
Use OData query operations in SharePoint REST requests
https://msdn.microsoft.com/en-us/library/office/fp142385.aspx
Die „Methoden“ GetByTitle(),
lists() etc. sind OData Extensions
um das Service einfacher zu
verwenden
https://msdn.microsoft.com/en-us/data/ff478141.aspx
OData Beispiele für SP
https://github.com/OfficeDev/OData-BCS-SharePoint-Hosted-
App-Code-Sample
http://tomresing.com/2014/05/19/odata-bcs-code-sample-from-
teched-2014/
OData in SharePoint 2013 with jQuery
http://blog.concentra.co.uk/2013/02/06/odata/
OData mit BCS? Ja!
Using OData sources with Business Connectivity Services in
SharePoint 2013
https://msdn.microsoft.com/en-us/library/office/jj163802.aspx
Sicherheit mit Basic Authentication Beispiel:
https://github.com/jjabney/Lucid.Web.Portal/blob/master/L
ucid.Web.Portal/HttpModules/BasicAuthHttpModule.cs
Zusammenfassung
OData und OData in SP
WebAPI Interface
Excel & PowerBI
SPO App mit WebAPI
Slides & Demos: http://blog.atwork.at