From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 6 Jan 2024 05:35:40 +0000 (-0800) Subject: Update api version to v4 X-Git-Tag: v2.3.0~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae0e3b4054293ca3e729f565b345ced27f0225b;p=thirdparty%2Fpaperless-ngx.git Update api version to v4 --- diff --git a/src-ui/src/environments/environment.prod.ts b/src-ui/src/environments/environment.prod.ts index 0eaa437063..aa7f64c138 100644 --- a/src-ui/src/environments/environment.prod.ts +++ b/src-ui/src/environments/environment.prod.ts @@ -3,7 +3,7 @@ const base_url = new URL(document.baseURI) export const environment = { production: true, apiBaseUrl: document.baseURI + 'api/', - apiVersion: '3', + apiVersion: '4', appTitle: 'Paperless-ngx', version: '2.2.0-dev', webSocketHost: window.location.host, diff --git a/src-ui/src/environments/environment.ts b/src-ui/src/environments/environment.ts index 10d245f34e..fccb8927c2 100644 --- a/src-ui/src/environments/environment.ts +++ b/src-ui/src/environments/environment.ts @@ -5,7 +5,7 @@ export const environment = { production: false, apiBaseUrl: 'http://localhost:8000/api/', - apiVersion: '3', + apiVersion: '4', appTitle: 'Paperless-ngx', version: 'DEVELOPMENT', webSocketHost: 'localhost:8000', diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 8185773e7e..f2d306bbf9 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -319,7 +319,7 @@ REST_FRAMEWORK = { "DEFAULT_VERSION": "1", # Make sure these are ordered and that the most recent version appears # last - "ALLOWED_VERSIONS": ["1", "2", "3"], + "ALLOWED_VERSIONS": ["1", "2", "3", "4"], } if DEBUG: