Sharepoint REST API (getting site app Document Library data)

%3CLINGO-SUB%20id%3D%22lingo-sub-1123269%22%20slang%3D%22en-US%22%3ESharepoint%20REST%20API%20(getting%20site%20app%20Document%20Library%20data)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123269%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EHi%2C%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EI'm%20new%20to%20the%20Sharepoint%20REST%20API%20and%20am%20a%20little%20lost%20trying%20to%20figure%20out%20how%20to%20access%20data.%20Currently%20my%20client%20has%20a%20SharePoint%20site%20setup%20with%20%22Document%20Library%22%20apps.%20Which%20I%20understand%20is%20nothing%20more%20than%20a%20database.%20There%20are%20custom%20columns%2Ffields%20containing%20product%20data.%20For%20example%3A%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EItem%20Number%2C%20SKU%2C%20Product%20Name%20%2CProduct%20Price%2C%20etc...%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EI%20cant%20seem%20to%20figure%20out%20which%20endpoints%20to%20call%20to%20get%20information%20such%20as%20a%20field%20list%20(as%20the%20example%20able)%20as%20well%20as%20to%20get%20the%20actual%20data%20itself.%20I%20have%20been%20looking%20through%20the%20documentation%20and%20feel%20like%20I%20am%20looking%20in%20the%20wrong%20place.%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EMy%20goal%20is%20to%20build%20a%20public%20facing%20catalog%2Fsite%20custom%20coded%20to%20integrate%20with%20the%20existing%20web%20site%20using%20JavaScript%20to%20access%20the%20API.%20End-users%20should%20be%20able%20to%20browse%20through%20a%20paginated%20list%20of%20products%20(which%20will%20be%20extracted%20from%20this%20data%20collection%20via%20the%20API).%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EYour%20guidance%20is%20greatly%20appreciated.%20Thank%20you%20in%20advance%20for%20any%20help%20you%20might%20provide.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hi,

I'm new to the Sharepoint REST API and am a little lost trying to figure out how to access data. Currently my client has a SharePoint site setup with "Document Library" apps. Which I understand is nothing more than a database. There are custom columns/fields containing product data. For example:

Item Number, SKU, Product Name ,Product Price, etc...

I cant seem to figure out which endpoints to call to get information such as a field list (as the example able) as well as to get the actual data itself. I have been looking through the documentation and feel like I am looking in the wrong place.

My goal is to build a public facing catalog/site custom coded to integrate with the existing web site using JavaScript to access the API. End-users should be able to browse through a paginated list of products (which will be extracted from this data collection via the API).

Your guidance is greatly appreciated. Thank you in advance for any help you might provide.

1 Reply
Highlighted
I would advise you to take a look at the PnPJS library to make request through the REST API. Specifically the Folders session(https://pnp.github.io/pnpjs/sp/folders/) should help you get going. If you need any help, let me know.

Regards