Deck for Singapore Laravel Meetup on 22 Dec 2022.
The Design-First API development advocates for designing the API’s contract first before writing any code. The API contract can act as the central draft that keeps all your team members aligned on what your API’s objectives are, and how your API’s resources are exposed. Spotting issues in the design, before writing any code is a much more efficient and streamlined approach, than doing so after the implementation is already in place. This talk would cover an overview of OpenAPI, how to design API contract with Stoplight Studio, as well as asserting API responses against the API contract in testing.