Live data from Hacker News

APIs as infrastructure: future-proofing Stripe with versioning

stripe.com

51–53 of 53 posts

Re: APIs as infrastructure: future-proofing Stripe with versioning

#51
If the API is transforming requests/responses essentially auto-magically behind the scenes, then how would a client know what version to upgrade to, in order to get new desired features?

Say it is splitting of street into street1 and street2 for an address element. How would I know what version to target to get this feature?

Re: APIs as infrastructure: future-proofing Stripe with versioning

#53
post #23
post #13

Github also versions their API via headers, but uses the `Accept` header instead: https://developer.github.com/v3/media/

I'm surprised they don't run into CDN issues. Have run into more than one issue with the vary: Accept being ignored, resulting in everyone getting the result from the first man in regardless of header variance. Especially noticeable when we tried supporting both JSON and XML via the accepts header, with the version in the mime.

I don't think they run their API servers behind a CDN, that's not really a common thing at all.
Post reply on HN