In this article, we will learn about REST APIs in SharePoint. REST API is not a customary API, which include a set of libraries and all data containing types and the types containing properties & methods.
The REST API is typically applied as a Data-centric web service based upon the Open Data Protocol this we can mostly use to retrieve data in details
So let’s start using IE to see details for API for site page in SharePoint
- Open Internet explorer, Go to Internet Explorer Internet options. Navigate to Content tab and select the settings available for Feeds & Web Slices. See below screen shots:
- A dialog box will open up on the screen. You need to make sure that feed reading view is fully off. Click OK.
- Change the current URL to site URL +/_api/web. Next press Enter
You will get an XML document. If you scroll down further, you will get further information about the current web.
Next, in case we want to know more about the lists that are in the web, you need to append all such lists to your URL. When we were using the Explorer browser, you were issuing suitable get requests to your server. However, we can also do the remaining standard CRUD operations.
We can get all details using API file by expanding and adding List Name on the URL page.
Thanks ☺
No comments:
Post a Comment