(And, of course, as it generally goes without saying when someone labels something a "REST API", this is not REST, but that's a different topic.)
(And, of course, as it generally goes without saying when someone labels something a "REST API", this is not REST, but that's a different topic.)
I feel like almost every API could have this footnote.
But this is pedantry. REST has become a generic term for "shoving JSON around," for better or worse.
What's REST? What makes most APIs not REST?
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
That is, while there is value in the items on the right, we value the items on the left more.
From my experience using nginx for amateur reasons, this seems like the wrong way to go about this. Not to mention the distaste I have for caching redirects, like 301. (they make fixing your config annoying, since browsers will redirect (and switch the verb to GET) before even hitting the server)
real world systems might have to change actual ids. like the article. or say you grow to some other use case not covered before because of new regulation etc... 301 is the only rest way.