

The SharePoint 2013 REST API does not expose metadata. However, we can also do the rest of the standard CRUD operations. When we were using the browser, we were issuing get requests to the server, which means we want to retrieve information. Instead of information about an individual object, we will get a collection of information about all of the lists in the current site. Next, if you want to know about the lists in the web, you can append the lists to your URL.

We get an XML document back and if we scroll down, we will get information about our current web. We want information about the current web. Therefore, the site URL +/_api is the base URL for the SharePoint 2013 REST API and web is our query. We want information about the current web or the current site. Now you should get a view that looks like the following screenshot. Step 2 − Now let us change the URL to the site URL +/_api/web and press Enter. Make sure feed reading view is off and click OK. Step 1 − If you are using Internet Explorer, go to Internet Explorer settings and on Content tab, select the settings for Feeds and Web Slices as shown in the screenshot below. Let us look at this in Internet Explorer in which SharePoint site is open. The way these web services work, use each resource in the system is addressable by a specific URL that you pass off to the server. The REST API is implemented as Data-centric web service based on the Open Data Protocol or OData. This is not a traditional API, where we have a set of libraries that contain types and those types contain properties and methods. In this chapter, we will be covering the REST APIs.
