Using the Strapi API Endpoints

Overview

Now that we know how to create content-types and content using the Strapi admin panel, it’s time we start using those content types in our frontend so our users can interact with our application. In this lesson, we’ll first learn about automatically generated endpoints and the permissions required to access those endpoints.

Automatically generated endpoints

Whenever we create a collection type in our Content-type Builder, Strapi automatically generates a folder in our source code with the name of that collection. This folder is created in the /api folder—which is already present in the code—and it contains four subfolders: content-types, routes, controllers, and services. Let’s get into some more details about the content and purpose of these folders.

Please use the following widget to locate the files that we’ll discuss in this lesson:

Get hands-on with 1200+ tech skills courses.