Skip to content

Commit e645f95

Browse files
committed
Added REST v2 docs
1 parent 1b4b24c commit e645f95

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
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+

docs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@
333333
href: sp-add-ins/set-custom-permissions-on-a-list-by-using-the-rest-interface.md
334334
- name: Make batch requests
335335
href: sp-add-ins/make-batch-requests-with-the-rest-apis.md
336+
- name: SharePoint REST API v2
337+
href: sp-add-ins/sharepoint-rest-graph.md
336338
- name: SharePoint Migration Guidance
337339
items:
338340
- name: Migration Guidance for ISVs

0 commit comments

Comments
 (0)