Menu
Back to Discussions

Should you version your REST API using the path, a header, or a query parameter?

Alana Vargas
Alana Vargas
·2163 views
hey folks, ive been wrestling with api versioning lately. for rest apis, whats your preferred method? sticking to /v1/resource, using a custom accept header like 'application/vnd.myapi.v1+json', or maybe a query param like ?version=1? each seems to have pros and cons for discoverability and client implementation. curious to hear your experiences and what makes you choose one over the others
35 comments

Comments

Loading comments...