Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible integration with IS-11 Stream Compatibility Management #22

Draft
wants to merge 1 commit into
base: v1.0-dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions APIs/AnnotationAPI.raml
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,122 @@ documentation:
description: Returned when the request did not meet the API's additional constraints
body:
type: ErrorSchema
/streamcompatibility:
displayName: Stream Compatibility Management
get:
description: List of paths available from this API
responses:
200:
body:
example: !include ../examples/annotationapi-streamcompatibility-base-get-200.json
type: !include schemas/annotationapi-streamcompatibility-base.json
/inputs:
displayName: Inputs
get:
description: List Inputs
responses:
200:
body:
example: !include ../examples/annotationapi-node-resources-get-200.json
type: Resources
/{inputId}:
uriParameters:
sourceId:
type: string
pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
get:
description: Get annotations of a single Input
responses:
200:
body:
example: !include ../examples/annotationapi-node-resource-get-200.json
type: Resource
404:
description: Returned when the requested Input ID does not exist
body:
type: ErrorSchema
options:
description: A pre-flight check generally used for Cross-Origin Resource Sharing (CORS) purposes
responses:
200:
403:
404:
patch:
description: Update annotations of a single Input
body:
type: ResourcePatch
examples:
label-description: !include ../examples/annotationapi-node-resource-patch.json
tags: !include ../examples/annotationapi-node-resource-patch-tags.json
responses:
200:
body:
example: !include ../examples/annotationapi-node-resource-get-200.json
type: Resource
400:
description: Returned when the request did not meet the schema
body:
type: ErrorSchema
404:
description: Returned when the requested Input ID does not exist
body:
type: ErrorSchema
500:
description: Returned when the request did not meet the API's additional constraints
body:
type: ErrorSchema
/outputs:
displayName: Outputs
get:
description: List Outputs
responses:
200:
body:
example: !include ../examples/annotationapi-node-resources-get-200.json
type: Resources
/{outputId}:
uriParameters:
sourceId:
type: string
pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
get:
description: Get annotations of a single Output
responses:
200:
body:
example: !include ../examples/annotationapi-node-resource-get-200.json
type: Resource
404:
description: Returned when the requested Output ID does not exist
body:
type: ErrorSchema
options:
description: A pre-flight check generally used for Cross-Origin Resource Sharing (CORS) purposes
responses:
200:
403:
404:
patch:
description: Update annotations of a single Output
body:
type: ResourcePatch
examples:
label-description: !include ../examples/annotationapi-node-resource-patch.json
tags: !include ../examples/annotationapi-node-resource-patch-tags.json
responses:
200:
body:
example: !include ../examples/annotationapi-node-resource-get-200.json
type: Resource
400:
description: Returned when the request did not meet the schema
body:
type: ErrorSchema
404:
description: Returned when the requested Output ID does not exist
body:
type: ErrorSchema
500:
description: Returned when the request did not meet the API's additional constraints
body:
type: ErrorSchema
16 changes: 16 additions & 0 deletions APIs/schemas/annotationapi-streamcompatibility-base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Describes the Annotation API streamcompatibility resource",
"title": "Annotation API streamcompatibility resource",
"items": {
"type": "string",
"enum": [
"inputs/",
"outputs/"
]
},
"minItems": 2,
"maxItems": 2,
"uniqueItems": true
}
4 changes: 4 additions & 0 deletions examples/annotationapi-streamcompatibility-base-get-200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"inputs/",
"outputs/"
]