Prototyping an API
In previous chapters, you learned how to use an API mock server to validate the design of your API. Now, you’ll learn how to use an evolved technique that’s the first step in the API implementation. But first, let’s review what API mocking is so that you can see how it relates to this stage of development.
Mocking is often used as a way to simulate the behavior of an API. It’s considered a low-effort technique that you can apply without writing any code. Because of that, it’s applied during the API design stage when you’re validating your assumptions with stakeholders. You create an API mock that returns simulated responses, usually involving fake data, and you share it with potential API users so that they can test it. The goal is to help stakeholders understand how the API would work in a real scenario.
Once the design of the API has been validated, you can keep the mock server running so that your development team...