Skip to content

Commit

Permalink
Update OpenAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Sep 29, 2023
1 parent 21eed2f commit bd40d6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
8 changes: 8 additions & 0 deletions src/specs/videntigraf-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ components:
required:
- success
- guid
links:
status:
$ref: "#/components/links/status"

processingStatus:
description: Video processing status.
Expand All @@ -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.
Expand Down
10 changes: 1 addition & 9 deletions src/specs/videntigraf-private.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: '3.1.0'
openapi: '3.0.3'

info:
title: VIDentigraF
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
10 changes: 1 addition & 9 deletions src/specs/videntigraf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: '3.1.0'
openapi: '3.0.3'

info:
title: VIDentigraF
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit bd40d6b

Please sign in to comment.