Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the version should only be in the URL if you intend to support that URL forever.

I am of the opinion URLs are a promise the document will be available until the end of time. I don’t want to break the internet with 404s.

Since the only promise here is for the API to exist for 2 years when depreciated, then I think using a header is appropriate.

Query param doesn’t make sense either as it is often used as input data into the document at the URL. The document schema depends on the API version, so query params become a chicken/egg scenario



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: