Accessing REST APIs with SharePoint Framework

By now, you might be wondering how things change when we switch our underlying platform from a console app that runs on the server or workstation side to SharePoint Framework that always runs on the client side in a browser. As it turns out, it's not much different as you can still access the same REST APIs through SharePoint Framework. The main difference between our next example and the two previous examples is that everything runs within the constraints of SharePoint Framework, thus, development is done with TypeScript and through REST, not CSOM or JSOM (the JavaScript version of CSOM).

Let's create our new project first:

  1. Create a new folder in the desired location, and run the following command ...

Get SharePoint Development with the SharePoint Framework now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.