[PATCH v1 5/9] urls: Increment API version
Adam Hassick
ahassick at iol.unh.edu
Tue Jun 18 08:18:52 AEST 2024
Add version 1.4 because new fields were added to the API.
---
patchwork/urls.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/patchwork/urls.py b/patchwork/urls.py
index ecd3668..11cd8e7 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -347,12 +347,16 @@ if settings.ENABLE_REST_API:
urlpatterns += [
re_path(
- r'^api/(?:(?P<version>(1.0|1.1|1.2|1.3))/)?', include(api_patterns)
+ r'^api/(?:(?P<version>(1.0|1.1|1.2|1.3|1.4))/)?',
+ include(api_patterns),
),
re_path(
- r'^api/(?:(?P<version>(1.1|1.2|1.3))/)?', include(api_1_1_patterns)
+ r'^api/(?:(?P<version>(1.1|1.2|1.3|1.4))/)?',
+ include(api_1_1_patterns),
+ ),
+ re_path(
+ r'^api/(?:(?P<version>(1.3|1.4))/)?', include(api_1_3_patterns)
),
- re_path(r'^api/(?:(?P<version>(1.3))/)?', include(api_1_3_patterns)),
# token change
path(
'user/generate-token/',
--
2.45.2
More information about the Patchwork
mailing list