|
The Back-end of the proposed architecture is equipped with REST-API and several components : URLs, Serializer, models, and rest API.
URL is a universal resource locator that routes requests to either endpoints or targets. That is, the URL forwards the request to the appropriate endpoint.
Serializer is a translator that translates the structure of the model and components of the view into a Python data type.
View is the middle-ware that provides a user-interacting interface, which is a component with a defined logic to process a routed request. Through the view, data is filtered or edited according to the request.
A model defines the structure of the database.
REST-API is a set of HTTP-based communication methods where the front-end and the back-end communicate. In other words, it plays a role of manual guide for data processing. While the front-end requests the data, the back-end can understand the detailed request through REST-API. |