Skip to content

Commit f0b5c01

Browse files
committed
2 parents 765d7fe + a22d348 commit f0b5c01

12 files changed

+2391
-2688
lines changed

docs/apis/sharepoint-rest-graph.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Operations using SharePoint REST v2 (Microsoft Graph) endpoints
3+
description: Perform basic create, read, update, and delete (CRUD) operations with the SharePoint v2 REST interface.
4+
ms.date: 9/10/2019
5+
ms.prod: sharepoint online
6+
localization_priority: Priority
7+
---
8+
9+
# SharePoint REST operations via the Microsoft Graph REST API
10+
11+
If you are looking for the legacy SharePoint REST API documentation, see [Complete basic operations using SharePoint REST endpoints](complete-basic-operations-using-sharepoint-rest-endpoints.md).
12+
13+
For SharePoint Online, innovation using a REST API against SharePoint is driven via the Microsoft Graph REST API's. In scenarios where a solutions already have access tokens available to access SharePoint content, it's possible to access the REST API nativly within SharePoint instead of calling via the Microsoft Graph API.
14+
15+
Below is a table outlining a set of the Microsoft Graph endpoints being backed by SharePoint Online.
16+
17+
|Graph URL| SharePoint URL|
18+
|----|----|
19+
|https://graph.microsoft.com/v1.0/sites| https://{tenant-name}.sharepoint.com/_api/v2.0/sites|
20+
|https://graph.microsoft.com/v1.0/drives| https://{tenant-name}.sharepoint.com/_api/v2.0/drives|
21+
|https://graph.microsoft.com/v1.0/drive| https://{tenant-name}.sharepoint.com/_api/v2.0/drive|
22+
|https://graph.microsoft.com/v1.0/lists| https://{tenant-name}.sharepoint.com/_api/v2.0/lists|
23+
24+
If your solution already uses other Microsoft Graph REST API's, it is recommended to call API's via the Microsoft Graph REST endpoints for easier code management.
25+
26+
To figure out if a Microsoft Graph REST API call is backed by SharePoint Online you can add `$whatif` to the end of the query to output the underlying SharePoint URL.
27+
28+
## See also
29+
30+
- [Microsoft Graph REST API v1.0 reference](https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0)
31+
32+
33+
34+
35+

0 commit comments

Comments
 (0)