Before designing an API, model your API: guide
Blog post from Tyk
API modelling is a crucial precursor to designing APIs that effectively meet user needs, as it helps define what an API should deliver by understanding the problems it aims to solve. The process involves identifying participants who will use the API, determining desired outcomes, mapping the steps required to achieve those outcomes, and defining the resources and actions that will make up the API. This iterative approach, which includes validation against known requirements, ensures that APIs are not solely driven by database design but rather by the needs of the users and the capabilities the API must support. By focusing on communication and involving subject matter experts early in the process, API modelling aids in creating a shared understanding between developers and stakeholders, leading to more user-centered and efficient API designs.