From beac96dbed760f0764a263362d96a106e2f18003 Mon Sep 17 00:00:00 2001 From: Kresnadi Budisantoso Date: Fri, 2 Aug 2024 13:19:48 +0200 Subject: [PATCH] RED-9782 Updated RedactManager OpenAPI spec --- .../src/main/resources/api/redactmanager.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/persistence-service-v1/persistence-service-external-api-v2/src/main/resources/api/redactmanager.yaml b/persistence-service-v1/persistence-service-external-api-v2/src/main/resources/api/redactmanager.yaml index 3b09721fe..442d7ce7a 100644 --- a/persistence-service-v1/persistence-service-external-api-v2/src/main/resources/api/redactmanager.yaml +++ b/persistence-service-v1/persistence-service-external-api-v2/src/main/resources/api/redactmanager.yaml @@ -565,6 +565,7 @@ paths: - $ref: '#/components/parameters/dossierTemplateId' - $ref: '#/components/parameters/dossierId' - $ref: '#/components/parameters/keepManualChanges' + - $ref: '#/components/parameters/disableAutomaticRedaction' requestBody: content: multipart/form-data: @@ -1359,6 +1360,19 @@ components: overwriting a file: - `true`: The system keeps the manual changes on re-uploading (overwriting) the file. - `false` (default): Manual changes get discarded on re-uploading the file. + disableAutomaticRedaction: + name: disableAutomaticRedaction + in: query + required: false + schema: + default: false + type: boolean + style: form + explode: true + description: | + A toggle to disable automatic redactions, i.e., to just upload and process the file without applying any automatic redactions: + - `true`: The system does not apply any automatic redactions on the file. However, if the file contains redaction annotations, they are still imported. + - `false` (default): The system applies automatic redactions on the file. downloadId: name: downloadId in: path