- SharePoint Development with the SharePoint Framework
- Jussi Roine Olli J??skel?inen
- 302字
- 2021-07-08 10:13:56
SharePoint Online APIs
Developers need APIs in order to successfully integrate their solutions with other workloads and services. SharePoint Online exposes a good set of APIs, which we'll introduce in this chapter. In later chapters we'll walk through how to best employ the APIs, including authentication and authorization, as well as proper use cases for different kinds of APIs.
Currently, SharePoint Online exposes three types of APIs.
REST APIs, that can be found under the /_api/ URI, for example, https://{tenant}.sharepoint.com/_api/{commands}/{parameters}. This is the most common use case for accessing SharePoint Online structures, data, and information. A sample API call would be a call to the Lists API, which exposes all site lists. The URL for this would be https://{tenant}.sharepoint.com/_api/web/lists.
Note, that we need to first call /web/ underneath /_api/, in order to instruct the API to look at the current SharePoint site, and then call the Lists API:

The output, by default, is XML. This sample call exposes all SharePoint lists in the given SharePoint site.
In addition to REST APIs, SharePoint Online still exposes a smaller subset of SOAP Web Services. These Web Services are from the SharePoint 2007 era, but still, work and can sometimes turn out to be useful in specific situations where the REST APIs can't be used or where they might not provide the needed information. In truth, the SOAP Web Services are randomly used and not something SharePoint Online developers should resort to unless absolutely needed.
Last, but definitely not least, are the Microsoft Graph APIs or, more specifically, endpoints. As the name implies, these are not specific to SharePoint Online but more of an overall collection of APIs that Microsoft Graph provides.
- Data Visualization with D3 4.x Cookbook(Second Edition)
- JavaScript全程指南
- 數(shù)據(jù)庫程序員面試筆試真題與解析
- 自己動手寫搜索引擎
- C++面向?qū)ο蟪绦蛟O(shè)計(微課版)
- 編寫高質(zhì)量代碼:改善C程序代碼的125個建議
- PHP 編程從入門到實(shí)踐
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Effective Python Penetration Testing
- PhpStorm Cookbook
- RSpec Essentials
- 智能手機(jī)APP UI設(shè)計與應(yīng)用任務(wù)教程
- Red Hat Enterprise Linux Troubleshooting Guide
- Scratch從入門到精通
- Mastering PowerCLI