Requests should send a version number. If no version number is provided, it defaults to 1 (i.e., the current version of the API).
After making this change, backwards-incompatible changes can be made by bumping the version to 2. The main code should then be updated to the new version. If the server receives a request for 1, there should be a small wrapper that "emulates" the old API version.
Requests should send a version number. If no version number is provided, it defaults to
1
(i.e., the current version of the API).After making this change, backwards-incompatible changes can be made by bumping the version to
2
. The main code should then be updated to the new version. If the server receives a request for1
, there should be a small wrapper that "emulates" the old API version.