Standard Operating Procedure
sop-api-2.0.1
Api
The API layer is the adoption layer, the layer that defines the interface that external resources utilizes to interact with the microservice. The layer ihas 2 parts, an endpoint folder and a middleware folder.
The endpoint folder list names of actions exposed by the api, in a single level. If there is multiple version of an endpoint, then the endpoint is expected to contextualize a folder containing each version of the endpoint.
The middleware folder list middlewares that are used used in the dispatcher chain described by the route config.
The API layer has a configuration file that is responsible for defining all configurations related to the API layer in one place. This is especially where we find the route config.