News for hackers. Stuff that matters.
Re:API versioning has no “right way” (2017) by ben509 on Monday April 26, 2021 @10:56AM (#26943158)
The wrongest is when it's stuck in an irrelevant header, as in Accept: application/json;v=3

I'm sure that's specified somewhere, but it's a shamefully stupid specification, so don't follow it. Any sane person reading that is going to think you're accepting a specific version of JSON.

Also, if you must put versions be in a header, STOP with the nonsense of pretending things don't exist. Give us some freaking clue, return a 404 and explain that we're missing your stupid header, or that the planets haven't aligned, or whatever we're supposed to fix.

There are no comments on this comment yet.