Hi Everyone ,
I have a question regarding designing the REST API for mobile application.
Assuming I am designing a REST API for dashboard screen in mobile app.which fetches data from multiple tables in the database.
In this case, what is the ideal approach?
- One rest API to fetch all the data at once.
- Multiple rest API that fetches data from each database table.which may involve the second API to be called after the success of the first API.
Considering clean code practices like
- Separation of code concerns
- CPU usage/ and User experience on the app
Please share your experience on what should be the approach in such cases.