Open tloriato opened 5 years ago
Issues
sdec-brasil/dashboard-publico#5 (General Stats from a Single City) sdec-brasil/dashboard-publico#4 (Expected revenue in the end of the month for a Single City) sdec-brasil/dashboard-publico#3 (Total Value in Late Invoices from a Single City)
could all use the same endpoint, that would return general stats for a city.
To issues sdec-brasil/dashboard-publico#8, sdec-brasil/dashboard-publico#7, sdec-brasil/dashboard-publico#6, sdec-brasil/dashboard-publico#4, sdec-brasil/dashboard-publico#2, I believe each of them should have its separate endpoint.
Maybe I'm wrong but I don't exactly agree right now with your comments.
sdec-brasil/dashboard-publico#2 deals with revenue (R$) as well as sdec-brasil/dashboard-publico#4 and sdec-brasil/dashboard-publico#3, so I don't think we should treat them separately?
Maybe we can serve them all in the /city/{id} endpoint but some only in /city/{id}/{feature}.
Either way we can decide this later
After reviewing the issues, I think I agree with you. Each issue in a separate endpoint, right?
We'll be aligning the front-end design with the API, so here this issue will be used to track all stats that we are going to need and where are we serving them.