Configuring a versioning scheme

Let's imagine we have to serve the following two versions of our RESTful Web Service:

  • Version 1: The version we have developed so far. However, we want to make sure that the clients understand that they are working with version 1, and therefore, we want to include a reference to the version number in the URL for each HTTP request.
  • Version 2: This version has to allow clients to reference the drones resource collection with the vehicles name instead of drones. In addition, the drone categories resource collection must be accessed with the vehicle-categories name instead of drone-categories. We also want to make sure that the clients understand that they are working with version 2, and therefore, we want to ...

Get Learn Web Development with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.