Versioning: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 18: Line 18:


=== Version Header ===
=== Version Header ===
A less common approach is to use a [[header]] like <code>X-API-Version: 1</code> in API requests. There are two approaches within this strategy that have different tradeoffs.
A less common approach is to use a [[HTTP Header | header]] like <code>X-API-Version: 1</code> in API requests. There are two approaches within this strategy that have different tradeoffs.


==== Don't Allow Requests Without Header ====
==== Don't Allow Requests Without Header ====
Line 77: Line 77:


Disadvantages:
Disadvantages:
* Hard to explore without an API viewer like [[media-types-serialization]] provides.
* Hard to explore without an API viewer like [[Media-Types Serialization]] provides.
 
 
[[Category: Terminology]]

Navigation menu