API Design · Senior · Question 61 of 75
What's the risk of tight coupling between an API's response shape and a single UI screen?
- 1UIs can't use APIs
- ✓Correct answer: Every UI change forces an API change, and other clients get data shaped for someone else; BFFs or flexible queries isolate UI needs
- 3It makes responses smaller, so there's no risk
Explanation
Shared APIs should model the domain; UI-specific shaping belongs in a BFF or the client.