by Qix · 16y ago · 0 comments
If I use the latest version it is likely developers will simple leave the header out since it "Just Works" without it.
Then when I make a breaking change to the latest API those applications will get screwed. Yes its mostly their fault -- but its my problem.
This is how Google handle it and I think it make sense. http://code.google.com/intl/zh-TW/apis/gdata/docs/developers...
/api/getstuff?v=1.1&arg1=x&arg2=y
If the version isn't there just return a useful error.
The only downside to this is that it's slightly more difficult to do analytics on the URL requests coming in.
You can't believe how many time I have had problems with an API just to discover the 3 year old client library was using some "sensible defaults" for required arguments.