|
|
|
|
|
by dordoka
3005 days ago
|
|
He is not a deity, of course, he's "just" the one that invented REST. I guess what you mean is that he's not right about everything he says. Well, what he exactly says is that URLs should not include versioning, because URLs are the interfaces names and REST estates that interface names should not be versioned, as that implies a breaking change in the API. It's just the wrong place for versioning in the REST way. But he is not against versioning, as you say, you can use the Accept header. You could also use a custom header if you might, but the canonical way would be the Accept header. |
|
I totally understand asking for the version (Accepts) during a GET request. If I agreed on that content-type in advance, if I haven't I need to communicate both the url and the content-type along with the version to the clients. We don't have a common container for (url,content,version), things are getting messy. In a package manager, what is the equivalent of a GET request with an accepts header?
Joe Armstrong has a great post on modules and versioning http://lambda-the-ultimate.org/node/5079I am strongly infavor of immutable code, I think we should be able to import all versions of a library, referenceable by commit hash.