API Design · Middle · Question 65 of 75
What is media type versioning?
- 1Putting the version in the file extension
- 2Versioning images and videos
- ✓Correct answer: Clients request a version through the
Acceptheader, e.g.application/vnd.example.v2+json
Explanation
It keeps URLs stable and uses content negotiation, but it's harder to try in a browser and to route in some gateways.