Ask HN: In REST APIs, should the version be at the start or end of the path?
Say I have this REST API path: /api/ca/cb/cc
Which of the following is a better way to include version string, e.g. v0, in the API?
/api/v0/ca/cb/cc
or
/api/ca/cb/cc/v0
Which of the following is a better way to include version string, e.g. v0, in the API?
/api/v0/ca/cb/cc
or
/api/ca/cb/cc/v0
2 comments
[ 2.9 ms ] story [ 11.8 ms ] threadChanging APIs afterwards would become very difficult, hence the reason for early decision.