I have a Sharepoint Framework project (SPFx) using knockoutJS, in which the app will try to read a data from an Excel file stored in a sharepoint Document Library in a Sharepoint Online Site, using Excel Rest API.
I came across several documentations, but it didn't give me a concrete working example on how to do it.
https://learn.microsoft.com/en-us/sharepoint/dev/general-development/excel-services-rest-api
I can't get the list of documents with this URL.
http:///_vti_bin/ExcelRest.aspx/Documents/Book1.xlsx
And i believe that i need to create some authentication method so that the app user can access the document before reading it.
I haven't used Excel Rest API and Microsoft Graph in a Sharepoint Framework (SPFx) app before.
Can anyone help me on this? I would like to see a complete working example of reading an excel file in a sharepoint online document library.