A server mocking library creates a mock server that replicates an API’s specified behavior. It gives developers a simulated backend before the real server is ready. section 3.6
With an API specification in place, client and server work can proceed in parallel. The client uses the mock server, while the implementation is validated against the specification. section 3.6
Common server mocking libraries include:
- Prism section 3.6
- WireMock section 3.6
- Microcks section 3.6
Figure 3.27 When we produce an API specification, we can work on the API client and the server in parallel. We simulate the backend using mock servers while we work on the client, and we validate the server implementation against the specification to ensure that the integration works.
Shows how a mock server simulates the backend for client development while the real server is checked against the API specification. section 3.6
