In this lesson, we’ll improve upon the work completed in the previous lesson by making our web part’s context more portable and far easier to use. We will create an entirely new abstracted service class that will handle all of the communication between SharePoint and our web part, as well as introduce much-needed features like error handling. Finally, we’ll extend the service class to include multiple SharePoint REST API endpoints and learn how to implement typed interface return types with local mock data.
Get to Know the SharePoint REST Service:https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom
SharePoint Search REST API: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview
Getting Started with OData: https://www.odata.org/getting-started/basic-tutorial/
Lesson Source Code: https://github.com/himanshu28chavan/Dash