Chapter 5: Customizing Our API
In this chapter, we will start customizing our API beyond basic create, read, update, and delete (CRUD) operations. So far, all we have done is define content-types in Strapi's Content-Type Builder, which automatically created an API to create, retrieve, update, and delete entries for that type. We did not have to do any coding. As always, Strapi provided sensible defaults and got our project off the ground with minimum effort. In any large project, though, we will reach a point where these defaults are not enough, and we will want to do a bit more or alter the default behavior slightly. Strapi is very easy to extend, and this chapter will teach us how to do so.
In this chapter, we will cover the following topics:
- Defining new routes in our API
- Mapping routes to controllers and services
- Implementing the DRY concept for our API logic
- Securing our API by removing sensitive data and configuring the default permission policy ...