I may have missed this before, and if I have, I apologize (I searched and didn't find anything).

Is there a way to discover what the API version for a site is? With the recent change from 0.8 to 0.9, there's been some whining about having to change code and whatnot. Could we mitigate this issue in the future by making the version discoverable?

I think a good place to put this would be the http://stackauth.com/sites endpoint, where each site could now include a "version": "0.9" entry.

1 Answer
1

Beta is an unusual time, in that the version number changes fairly frequently.

Once we're into 1.0, such changes will basically never happen. You'll always be in 1.0, unless you explicitly target a newer version of the API; which will probably be rife with breaking changes, requiring much more than a recompile.

As such, no discovery mechanism for API versions exists - nor will it - as it will be of 0 utility in the full release.

@kevin - what do you mean "required attribute"? the inclusion of the version?
–
JasonJun 24 '10 at 23:30

@Jason - yes, the version number. Its kind of hard to name it; maybe "required parameter" would be better... thats not quite right in terms of code, but better conceptually I guess.
–
Kevin Montrose♦Jun 24 '10 at 23:52