restful api versioning strategies url vs header
Dounia Choukri
·6235 views
hey everyone, i've been thinking a lot about how to handle api versioning as our services grow. weve used the url path versioning (like /v1/users) so far, but im wondering if putting the version in a request header (like accept: application/vnd.myapp.v1+json) is a better long-term approach. what are your thoughts? any pros or cons youve experienced with either method in production?
31 comments