2 ms·
The right way to do version numbers is that the client/caller says "I am complying with version N of the API spec", and the server/callee says "I understand spe
by Animats 10y ago
The right way to do version numbers is that the client/caller says "I am complying with version N of the API spec", and the server/callee says "I understand spec versions X through Y at this endpoint". If N < X or N > Y, the transaction is rejected. This applies on a per-endpoint or even a per-function basis, not to the whole system.
If the server gets more functionality, Y can increase. Increasing X breaks some existing programs, but callers which still speak an old version can drop back to that.