Need the SharePoint rest api endpoint for a graph api

Lovy Jain 1 Reputation point
2023-01-03T08:56:04.89+00:00

Team,

Need the SharePoint rest API end point for a graph api endpoints. There is some new betta endpoint for graph api on which i need the SP end points.
ex:

https://graph.microsoft.com/beta/sites/ba37d781-3f86-4234-bb6c-c4437978441a/pages/

Need the SP endpoint for this and whether that will be also in beta

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,881 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,726 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rob Windsor 1,956 Reputation points
    2023-01-03T09:35:29.173+00:00

    The SharePoint API in Microsoft Graph supports the following core scenarios:

    • Access to SharePoint sites, lists, and drives (document libraries)
    • Read-only support for site resources (no ability to create new sites)
    • Read-write support for lists, listItems, and driveItems
    • Address resources by SharePoint ID, URL, or relative path

    Please see the following reference documentation for more information. As you'll see in the screen capture, this documentation is for the v1.0 version of Microsoft Graph.

    Working with SharePoint sites in Microsoft Graph

    275605-image.png

    0 comments No comments

  2. RaytheonXie_MSFT 32,246 Reputation points Microsoft Vendor
    2023-01-04T01:56:46.823+00:00

    Hi @Lovy Jain
    The graph api will get the collection of sitePage objects from the site pages list in a site site. All pages in the site are returned (with pagination). Sort alphabetically by name in ascending order. You can use following rest api to get all pages under "sitePages"

    _api/web/lists/getbytitle('Site Pages')/Items  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.