🔌Mock Server
Also known as Mock API, API Mock, Fake API Server
A fake API that sends back set answers, for building and testing.
Think of it like
Think of it like a cardboard shop front on a film set. It looks real enough to act in front of.
Example
Jack's app team builds the checkout screen against a mock server. The real payments API is not ready for two weeks.
Why it matters
Teams stop waiting on each other. Tests stop needing outside services.
Definition
Common mistake
Key takeaways
- 1Set answers. It replies the same way each time.
- 2Build early. No need to wait for the real API.
- 3Keep it in step. Match the real contract.