Versioning RESTful services?
问题 I have a RESTful web service deployed at http://example.com/v1/SomeResource. One day, a new protocol version ( that is not backwards compatible ) is deployed to http://example.com/v2/SomeResource. From the client of view, this upgrade could occur at any time between two HTTP requests. How does the server indicate to the client that it no longer supports v1 calls and the client is expected to upgrade to v2? Is there an appropriate response code I can use? I would want to provide the client