Chapter 2: Building Our First API
In this chapter, we will create our first API endpoint. We will explore the structure of a Strapi API project, and what modules and files Strapi creates for us. We will touch on the concept of a content-type and explore the structure and commands of a typical Strapi application.
The topics we will cover in this chapter are as follows:
- Exploring the project structure of a Strapi application
- Defining the requirements – what are we going to build?
- Creating our first content-type using the admin panel and the command-line interface (CLI)
- Clarifying Strapi terminology – content-type, resources, and object types
- Interacting with our API
- Understanding the makeup of an API – routes, controllers, services, and models