Resting in Peace with Rest Api In SharePoint
Once upon a time, as a developer I was never given access to code on the SharePoint server. I could not stop myself from coding. I got access to the lists and sites using the web services ending in svc like listdata.svc using simple C# code. Going ahead in time, things have improved a lot. Javascript and client side coding has caught up and almost replacing server side coding. What is so cool about REST API? You can do a lot of coding right from browser using any language. This article uses PowerShell to get connected to SharePoint URL and do various Read operations. The cool thing is there is only one PowerShell code and the URL alone changes. In regular CSOM coding, you need to remember the Class and the methods to get your job done. The code remains the same and the URL alone changes.
Run the code from here
Then call Create-SPObject for Creation
Read-SPObject for Read
Update-SPObject for Update
Delete-SPObject for Delete
Rest API to create a Subsite. Check the video below that describes the steps to create a Garden subsite and even perform CRUD operations on a list. Do you want to do them yourself and try? Check my website here
Comments
Post a Comment