DEV Community

Discussion on: Is it a good practice to get all the data in Single call, when designing REST API for mobile App ?

Collapse
 
luscala profile image
Luca Scala

It depends on your architecture. Having a single call means spending propagation time once: it will affect your loading times for sure. If there are several micro services you could provide a GraphQL layer to address that. Otherwise, if there is only one service you can add a new endpoint to provide all data needed.

Collapse
 
ns23 profile image
Nitesh Sawant

Adding GraphQL layer seems to be a good apporach :)