What is 'API mocking' and how does it enable frontend and backend teams to develop in parallel?
- A.API mocking creates a simulated API server that returns predefined responses matching the agreed contract (OpenAPI spec). Frontend developers can build against the mock API before the backend is ready. Backend developers implement against the spec without waiting for frontend integration. Tools: Prism (OpenAPI-based mock server), Mirage.js (in-browser mocking), WireMock, MSW (Mock Service Worker)
- B.API mocking is the practice of creating fake user accounts to test API behavior at scale; server-sent events are bidirectional, with the client writing on the same stream, which is why SSE replaced WebSockets; GraphQL query complexity limits are enforced by the HTTP server's URL length cap, since queries travel in the path; SOAP is a REST profile that adds an envelope, and the two share caching and verb semantics; REST maturity level 3 requires binary payloads, and JSON caps an API at level 2 in the Richardson model
- C.