From bd40d6b70203015e2878a3c808e426cb4967c604 Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Fri, 29 Sep 2023 15:21:25 +0300 Subject: [PATCH] Update OpenAPI specs --- src/specs/videntigraf-common.yaml | 8 ++++++++ src/specs/videntigraf-private.yaml | 10 +--------- src/specs/videntigraf.yaml | 10 +--------- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/specs/videntigraf-common.yaml b/src/specs/videntigraf-common.yaml index 41702123..5d7c7b76 100644 --- a/src/specs/videntigraf-common.yaml +++ b/src/specs/videntigraf-common.yaml @@ -139,6 +139,9 @@ components: required: - success - guid + links: + status: + $ref: "#/components/links/status" processingStatus: description: Video processing status. @@ -148,6 +151,11 @@ components: oneOf: - $ref: "#/components/schemas/processed" - $ref: "#/components/schemas/processing" + links: + detections: + $ref: "#/components/links/detections" + matches: + $ref: "#/components/links/matches" zipArchive: description: The requested ZIP archive. diff --git a/src/specs/videntigraf-private.yaml b/src/specs/videntigraf-private.yaml index 9b9a06d4..8b920ce4 100644 --- a/src/specs/videntigraf-private.yaml +++ b/src/specs/videntigraf-private.yaml @@ -1,4 +1,4 @@ -openapi: '3.1.0' +openapi: '3.0.3' info: title: VIDentigraF @@ -27,9 +27,6 @@ paths: $ref: "generic-responses.yaml#/components/responses/bad-gateway" "200": $ref: "videntigraf-common.yaml#/components/responses/successfulUpload" - links: - status: - operationRef: "videntigraf-common.yaml#/components/links/status" /process/{guid}: get: @@ -52,11 +49,6 @@ paths: $ref: "generic-responses.yaml#/components/responses/bad-gateway" "200": $ref: "videntigraf-common.yaml#/components/responses/processingStatus" - links: - detections: - operationRef: "videntigraf-private.yaml#/components/links/detections" - matches: - operationRef: "videntigraf-private.yaml#/components/links/matches" /process/{guid}/detections/{archive}: get: diff --git a/src/specs/videntigraf.yaml b/src/specs/videntigraf.yaml index 4c0b2bcc..9b1fb88f 100644 --- a/src/specs/videntigraf.yaml +++ b/src/specs/videntigraf.yaml @@ -1,4 +1,4 @@ -openapi: '3.1.0' +openapi: '3.0.3' info: title: VIDentigraF @@ -41,9 +41,6 @@ paths: $ref: "generic-responses.yaml#/components/responses/bad-gateway" "200": $ref: "videntigraf-common.yaml#/components/responses/successfulUpload" - links: - status: - operationRef: "videntigraf-common.yaml#/components/links/status" /process/{guid}: get: @@ -70,11 +67,6 @@ paths: $ref: "generic-responses.yaml#/components/responses/bad-gateway" "200": $ref: "videntigraf-common.yaml#/components/responses/processingStatus" - links: - detections: - operationRef: "videntigraf-private.yaml#/components/links/detections" - matches: - operationRef: "videntigraf-private.yaml#/components/links/matches" /process/{guid}/detections/{archive}: get: