Chapter 11: Testing APIs with Postman
In the previous chapters, we talked about DevOps culture and Infrastructure as Code (IaC) with Terraform, Ansible, and Packer. Then, we saw how to use a source code manager with Git, along with the implementation of a CI/CD pipeline with Jenkins and Azure Pipelines. Finally, we showed the containerization of applications with Docker and their deployment in a Kubernetes cluster.
If you are a developer, you should realize that you use APIs every day, either for client-side use (where you consume the API) or as a provider of the API.
An API, as well as an application, must be testable, that is, it must be possible to test the different methods of this API in order to verify that it responds without error and that the response of the API is equal to the expected result.
In addition, the proper functioning of an API is much more critical to an application because this API is potentially consumed by several client applications, and if it does...