A versioned API allows for you to ensure a given version has one way to do things and not 5, 4 of which are no longer supported but can't be removed. You can drop old weight without messing up legacy systems.
Isn’t having the name (e.g. Over2gb) easier to understand than just saying v2?
This is in the situation where there is breaking changes forced upon v1/downloadFile.
If you only break one or two functions, it seems ok. But, some change in a core data type could break everything, so adding a prefix "/v2/" would probably be cleaner.
soulofmischief|6 months ago
Bjartr|6 months ago
jahewson|6 months ago
pixl97|6 months ago
/v1/downloadFile
/v2/downloadFile
Is much easier to check for a v3 then
/api/downloadFile
/api/downloadFileOver2gb
/api/downloadSignedFile
Etc. Etc.
echelon|6 months ago
It's typically to declare bankruptcy on the entirety of /v1 and force eventual migration of everyone onto /v2 (if that's even possible).
claw-el|6 months ago
ks2048|6 months ago
CharlesW|6 months ago
unknown|6 months ago
[deleted]