This is super handy for debugging/development of Patchwork and Patchwork
clients alike.
Signed-off-by: Stephen Finucane <stephen@that.guru>
own instance of Patchwork locally <../development/installation>` and
experiment with that instead.
+Versioning
+----------
+
+By default, all requests will receive the latest version of the API: currently
+``1.0``:
+
+.. code-block:: http
+
+ GET /api HTTP/1.1
+
+You should explicitly request this version through the URL to prevent API
+changes breaking your application:
+
+.. code-block:: http
+
+ GET /api/1.0 HTTP/1.1
+
Schema
------
]
urlpatterns += [
- url(r'^api/(?P<version>(1.0))/', include(api_patterns)),
+ url(r'^api/(?:(?P<version>(1.0))/)?', include(api_patterns)),
]