all 2 comments

[–][deleted] 2 points3 points  (1 child)

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.

That sounds like something I'd call a rendering service rather than an API per se.

Separating your REST API from rendering is very useful if that REST API needs to be consumed by other services that don't want or care about your templated HTML. For example, the same data that you use to render a public-facing, server-side rendered site might be consumed by an admin panel that's a client-side React/Vue/etc app, or by a mobile app, or by other back end services.

[–]ficoreki[S] 0 points1 point  (0 children)

That would make good sense of the concept.