1. Why can you change the code behind an API freely but not its behaviour?
- Behaviour is always random
- Code is secret and cannot be edited
- Clients depend on the contract, so changing behaviour can break them
- Because HTTP forbids it
Show answer
Answer: Clients depend on the contract, so changing behaviour can break them
The observable behaviour is the promise; implementation details are private.
Lesson: What Makes an API Good