With REST API, you can now display files and folders from a Document Library in your SharePoint pages. We’ve compiled useful articles from our Knowledge Base to guide you through the process. Check out the articles below.
Showcase Both Files and Folders
This article demonstrates how to display both files and folders in a Document Library. The folders will be shown at the top, while the files will be shown at the bottom. Go to How to Show Files and Folders from a Document Library Using REST API for a step-by-step guide on how to accomplish this.
Showcase a Mixed View of Files and Folders
Unlike the first article, this guide shows you a mixed view of files and folders. If you wish to have this type of folder and files view on your page, check out How to Show a Mixed View of Files and Folders from a Document Library Using REST API.
Showcase Top-level Folders and Files
This article demonstrates how to show only the top-level files and folders in a Document Library. Top-level simply means that only the folders and files at the root directory will be shown; the rest will be hidden. Follow the steps in How to Show Top-Level Folders and Files from a Document Library Using REST API to learn how to accomplish this.
Showcase Only Folders
This guide will only display the folders in your Document Library. See the step-by-step guide in How to Show Only the Folders of your Document Library Using REST API.
Showcase Files from a Specific Folder
This article will target a specific folder in your Document Library and display all its files in your File List. Check How to Connect to a Specific Folder Inside a Document Library Using REST API to learn how to do it.