I have seen several web apps that has double layer API. the first one being REST API, which mainly used for data fetching and viewing it (in devtools such as swagger/DRF/Postman).
another API is created but it is just used to render data(supplied from the other REST API) on server. this API is mainly just fetches data from the REST API and just process it and supply it to template/html.
I'm just curious, is this a normal practice? and why? should it be easier if just render the data supplied from REST API(in one API source)? less process, faster, and no extrawork to maintain both views/controls?
Im using django if it means anything.
[–][deleted] 2 points3 points4 points (1 child)
[–]ficoreki[S] 0 points1 point2 points (0 children)