This sample has been replaced with the following samples:
The sample demonstrates how to read from and load data that conforms with the OData protocol to the REST endpoints where the list and list item entities are exposed. Additionally, it demonstrates how to parse Atom-formatted XML returned from these endpoints and how to construct JSON-formatted representations of basic SharePoint entities so that you can perform Create and Update operations on them.
The sample also demonstrates best practices for retrieving form digest and eTag values that are required for Create and Update operations on lists and list items.
The code that uses the REST APIs and that builds the interface is located in the Home.aspx.cs file of the RESTHelperAppWeb project.
This sample requires the following:
The sample app contains the following:
To configure the Build REST queries and use REST to traverse a site sample app, update the SiteUrl property of the solution with the URL of the home page of your SharePoint 2013 Preview site.
Press the F5 key to build and deploy the app.
The following table lists common configuration and environment errors that prevent the sample from running or deploying properly and how to solve them.
|Visual Studio does not open the browser after you press the F5 key.||Set the app for SharePoint project as the startup project.|
|HTTP error 405 Method not allowed.||Locate the applicationhost.config file in %userprofile%\Documents\IISExpress\config.
Locate the handler entry for StaticFile, and add the verbs GET, HEAD, POST, DEBUG, and TRACE.
First version: July 16, 2012