GutoVeronezi commented on PR #7617:
URL: https://github.com/apache/cloudstack/pull/7617#issuecomment-1586403372

   @weizhouapache, creating an API to return a handful of resource counts will 
limit the users to the data we (the developers) define the API to return; for 
new use cases, we would have to extend the API to return a new resource count, 
which makes it a limited approach. 
   
   On the other hand, creating the proposed parameter in those APIs will give 
users the flexibility to combine the API parameters the way they want. The 
user's dashboard is just an example of where we can use the parameter; however, 
we have to remember that users can and will consume the APIs in different ways. 
Therefore, with that in addition to my initial point, I believe that the 
parameter creation in this scenario is a better approach rather than creating 
an API, as it brings flexibility for the users.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to