An API is rarely built and consumed in isolation. It touches various stakeholders — from clients consuming the API to product teams shaping the requirements. Irrespective of the API complexity and the immediate expectations, designing APIs on a solid foundation goes a long way.
Some of the critical metrics that affect the quality of an API:
A good design demands a detailed understanding of the product requirements and involving all stakeholders. Maintainability goes hand-in-hand with communicating the API design and implementation decisions with ease. Finally, the agility and scalability of the development dictate how extensible the API is.