| Strategy | How It Works | Pros | Cons |
|---|---|---|---|
| Accept Header | Accept: application/vnd.myapp.v1+json |
Follows HTTP spec; cache-friendly | Clients must set correct MIME type |
| Custom Header | X-API-Version: 2 |
Explicit, easy to read | Non-standard header |
Last active
May 2, 2025 18:10
-
-
Save Silent-Watcher/c476efb7b71e8fa15b6151a6b083c337 to your computer and use it in GitHub Desktop.
API Header versioning strategies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment