In the API model, whenever a service needs something, it makes a network call to a known endpoint with a request and gets a response back. The service making the call is frequently called the client, and the other is the server. It should be noted that a service can be (and is frequently) both a client and a server in the context of different interactions.
Endpoints
Networking basics
To enable communication over a network, a set of rules for data exchanges is imperative. Such rules are typically standardized through protocols and grouped into various layers—each layer of the communication stack dealing with a specific charter. The following diagram depicts the traditional networking layers and related protocols:
![](https://static.packt-cdn.com/products/9781788622592/graphics/assets/1a7e2bf3-20fb-4671-b3a8-452d38cba281.png)
Most...