Consuming SharePoint 2013 from Windows 8 Apps by Paolo Pialorsi #ESPC13

Sharepoint 2013 remote API

_api is new alias for _vti_bin/client.svc

_api/web : team projects

_api/web/lists : documents and content

_api/search : search

_api/site : site collection

For example to get the list called ‘recipes’ browse to http://yoursite/_api/lists/getbytitle(‘recipes’)/

Or to get the items : http://yoursite/_api/lists/getbytitle(‘recipes’)/items

Or to get one item: http://yoursite/_api/lists/getbytitle(‘recipes’)/Items(2)

You can still use also the old way: _vti_bin/listdata.svc

Use fiddler and add ‘Accept: aplication/json;odata=verbose’ to the requestheader to see what to expect as a result clientside from these _api requests.

Data sources for win 8 apps:

  • Local file system
  • WCF/SOAP
  • Odata (consume through Odata Client Tools for windows store apps)
  • REST + POX/JSON/RSS/ATOM (consume through HttpClient)
  • Windows Azure Service

Tip: you can enable enterprise authentication in your windows 8 app or you use the web autohentication broker (right here) which is an iframe that allows you to enter your credentials when running the app.

More info: www.devleap.com