From 0fef532d706581236694da6f0aff795b41be28b1 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 27 Apr 2022 17:31:03 +0100 Subject: [PATCH] Bug 22785: (QA follow-up) Remove superflous spec files We don't need these any more.. I think they crept back in during rebases Signed-off-by: Martin Renvoize --- .../definitions/import_record_match.json | 21 --- .../parameters/import_record_match.json | 16 -- .../parameters/import_record_match.yaml | 13 -- .../swagger/paths/import_record_matches.json | 144 ------------------ 4 files changed, 194 deletions(-) delete mode 100644 api/v1/swagger/definitions/import_record_match.json delete mode 100644 api/v1/swagger/parameters/import_record_match.json delete mode 100644 api/v1/swagger/parameters/import_record_match.yaml delete mode 100644 api/v1/swagger/paths/import_record_matches.json diff --git a/api/v1/swagger/definitions/import_record_match.json b/api/v1/swagger/definitions/import_record_match.json deleted file mode 100644 index abde7365b0..0000000000 --- a/api/v1/swagger/definitions/import_record_match.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "object", - "properties": { - "import_record_id": { - "type": "integer", - "description": "Internal import record identifier" - }, - "candidate_match_id": { - "type": "integer", - "description": "Internal import record match candidate identifier" - }, - "chosen": { - "type": "boolean", - "description": "Whether match has been chosen for overlay" - }, - "score": { - "type": "integer", - "description": "Ranking value for this match calculated by the matching rules" - } - } -} diff --git a/api/v1/swagger/parameters/import_record_match.json b/api/v1/swagger/parameters/import_record_match.json deleted file mode 100644 index 5268c2a2dc..0000000000 --- a/api/v1/swagger/parameters/import_record_match.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "import_record_id_pp": { - "name": "import_record_id", - "in": "path", - "description": "Internal import_record identifier", - "required": true, - "type": "integer" - }, - "candidate_match_id_pp": { - "name": "candidate_match_id", - "in": "path", - "description": "Internal import_record_match_candidate identifier", - "required": true, - "type": "integer" - } -} diff --git a/api/v1/swagger/parameters/import_record_match.yaml b/api/v1/swagger/parameters/import_record_match.yaml deleted file mode 100644 index 376c406bca..0000000000 --- a/api/v1/swagger/parameters/import_record_match.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -import_record_id_pp: - name: import_record_id - in: path - description: Internal import_record identifier - required: true - type: integer -candidate_match_id_pp: - name: candidate_match_id - in: path - description: Internal import_record_match_candidate identifier - required: true - type: integer diff --git a/api/v1/swagger/paths/import_record_matches.json b/api/v1/swagger/paths/import_record_matches.json deleted file mode 100644 index 3c0be19d97..0000000000 --- a/api/v1/swagger/paths/import_record_matches.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "/import/{import_batch_id}/records/{import_record_id}/matches/chosen": { - "put": { - "x-mojo-to": "ImportRecordMatches#set_chosen", - "operationId": "setChosen", - "tags": ["import_record_matches"], - "parameters": [{ - "name": "import_batch_id", - "in": "path", - "required": true, - "description": "An import_batch ID", - "type": "integer" - }, { - "name": "import_record_id", - "in": "path", - "required": true, - "description": "An import_record ID", - "type": "integer" - }, { - "name": "body", - "in": "body", - "description": "A JSON object containing fields to modify", - "required": true, - "schema": { - "type": "object", - "properties": { - "candidate_match_id": { - "description": "Candudate match to choose", - "type": "integer" - } - } - } - } - ], - "consumes": ["application/json"], - "produces": ["application/json"], - "responses": { - "200": { - "description": "Match updated" - }, - "400": { - "description": "Missing or wrong parameters", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "401": { - "description": "Authentication required", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "403": { - "description": "Match management not allowed", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "404": { - "description": "Import record match not found", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "500": { - "description": "Internal server error", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "503": { - "description": "Under maintenance", - "schema": { - "$ref": "../definitions.json#/error" - } - } - }, - "x-koha-authorization": { - "permissions": { - "tools": "manage_staged_marc" - } - } - }, - "delete": { - "x-mojo-to": "ImportRecordMatches#unset_chosen", - "operationId": "unsetChosen", - "tags": ["import_record_matches"], - "parameters": [{ - "name": "import_batch_id", - "in": "path", - "required": true, - "description": "An import_batch ID", - "type": "integer" - }, { - "name": "import_record_id", - "in": "path", - "required": true, - "description": "An import_record ID", - "type": "integer" - }], - "produces": ["application/json"], - "responses": { - "204": { - "description": "Matches unchosen" - }, - "401": { - "description": "Authentication required", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "403": { - "description": "Match management not allowed", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "404": { - "description": "Import record matches not found", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "500": { - "description": "Internal server error", - "schema": { - "$ref": "../definitions.json#/error" - } - }, - "503": { - "description": "Under maintenance", - "schema": { - "$ref": "../definitions.json#/error" - } - } - }, - "x-koha-authorization": { - "permissions": { - "tools": "manage_staged_marc" - } - } - } - } -} -- 2.20.1