Hi @Jasper Baetslé
Do you want SharePoint On-premise information available as an application?
It is recommended that you use SharePoint App-Only
SharePoint App-Only is the older, but still very relevant, model of setting up app-principals. This model works for both SharePoint Online and SharePoint on-premises (2013/2016/2019/subscription edition) and is ideal to prepare your applications for migration from SharePoint on-premises to SharePoint Online.
Here is how to register for this app
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
Regarding sharepoint api, there are currently two types: one is sharepoint rest api and the other is Graph api.
There is a difference between the two.
The Graph API and the SharePoint REST API are two different ways of accessing data from SharePoint and other Microsoft 365 services. The main difference is that the Graph API is a more general and unified API that can access data from various Microsoft 365 services, while the SharePoint REST API is designed to work specifically with SharePoint sites and content. Here are some of the advantages and disadvantages of each API:
Graph API :https://learn.microsoft.com/en-us/graph/use-the-api
Advantages:
Provides a consistent developer experience for authentication, documentation, SDKs, samples and features like change notifications, delta queries and batch requests.
Supports identity-based access, which means you can use the same URL to access different resources based on the user’s permissions.
Covers most of the common scenarios for working with SharePoint sites, lists, folders, items and documents.
Disadvantages:
Does not support some of the SharePoint-specific features,
May have some latency or performance issues compared to the SharePoint REST API, since it is a proxy to the actual SharePoint API.
SharePoint REST API:https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints
Advantages:
Provides more functionality and control over SharePoint-specific features, such as site settings, site templates, workflows, search, etc.
May have better performance and responsiveness than the Graph API, since it directly accesses the SharePoint data source.
Disadvantages:
Requires different endpoints and authentication methods for different Microsoft 365 services, which can increase the complexity and maintenance of the app.
Uses function-based access, which means you need to know the exact name and parameters of the function to access a resource.
Depending on your needs and preferences, you can choose either the Graph API or the SharePoint REST API to interact with SharePoint. However, Microsoft recommends using the Graph API as much as possible, since it is the future direction of Microsoft 365 integration.
I hope this helps you with your project. If you have any other questions, please let me know.
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.
Best Regards
Cheng Feng