WaiterBot API
Middlewares permits communication and management for the backend by operating as a hidden translation layer. By using express.js framework we can easily manage middlewares as we need. Types of middlewares we use in our backend design are listed below.
This middleware is responsible for Access control of the users.
Following aspects where considered when designing the API to increase the quality of the API.
Version control comes in handy when we need to have some changes in our API. Existing clients may not like to update their applications when we change the API. A versioning strategy allows clients to continue using the existing API and migrate their applications to the newer API when they are ready.
Using the joi package validates the input first.
Winston / log4js