The application frontend API flow
The application frontend API is the logical layer that hosts the APIs that are supposed to be consumed by the application’s client. The flow is an extension of the single-page authentication pattern described in the previous chapter.
The following diagram outlines the subset of interactions reported in the previous diagram that involves this layer (the application frontend API).
Figure 6.2 – Zooming in on the application frontend API
The frontend acts as a broker to send the request to a backend component synchronously or asynchronously, according to the application’s design and the architectural pattern chosen.
The flow considered in such a diagram is composed of the following steps:
- The user connects to the API, which we can assume is available on the internet. We can also assume that the user is using a SPA and the authentication flow represented by the line that connects the user to the...