An Application Programming Interface (API), in general, is used to get data from one application to another. There are different kinds of APIs that are used in different areas, such as hardware and programming, but we will be talking only about web APIs. Web APIs are a form of web service that provides an interface to communicate between multiple applications. Data from one application is sent to another application via an HTTP protocol using such APIs.
In this chapter, we will talk about:
- REST architecture and RESTful APIs
- HTTP verbs and status codes
- Developing and testing APIs using Postman
Web APIs work in a similar way to how the browser interacts with our application server. The client requests some data from the server and the server responds with the formatted data to the client; APIs do something similar. For example, there is a contract set beforehand...