API Design · Junior · Question 38 of 75
What's the benefit of a 'design-first' API approach?
- ✓Correct answer: The contract (e.g. OpenAPI) is agreed and reviewed before implementation, so front end and back end can work in parallel against it
- 2It makes the API faster at runtime
- 3It removes the need for tests
Explanation
Mock servers built from the spec let front-end developers start early. Code-first works too, but changes are easier to miss.