Skip to content

Instantly share code, notes, and snippets.

@Silent-Watcher
Last active May 2, 2025 18:10
Show Gist options
  • Select an option

  • Save Silent-Watcher/c476efb7b71e8fa15b6151a6b083c337 to your computer and use it in GitHub Desktop.

Select an option

Save Silent-Watcher/c476efb7b71e8fa15b6151a6b083c337 to your computer and use it in GitHub Desktop.
API Header versioning strategies
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment