forked from AMWA-TV/is-07
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventsAPI.raml
87 lines (84 loc) · 2.58 KB
/
EventsAPI.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#%RAML 1.0
# AMWA NMOS Event & Tally Specification: Events API
# (c) AMWA 2018
title: Events
baseUri: http://example.api.com/x-nmos/events/{version}
version: v1.0
mediaType: application/json
types:
Base:
type: !include schemas/base.json
Sources:
type: !include schemas/sources.json
Source:
type: !include schemas/source.json
Event:
type: !include schemas/event.json
Type:
type: !include schemas/type.json
ErrorSchema:
type: !include schemas/error.json
documentation:
- title: Overview
content: |
The Events API is exposed by each NMOS Device in a system that supports AMWA NMOS Event & Tally Specification. The API is used to announce the type definitions used by the Event & Tally sources and for the receiving devices to be able to check the current source state.
/:
displayName: Base
get:
description: List of paths available from this API
responses:
200:
body:
example: !include ../examples/eventsapi-base-get-200.json
type: Base
/sources:
displayName: Sources
get:
description: List of the Event & Tally compatible sources
responses:
200:
body:
example: !include ../examples/eventsapi-sources-get-200.json
type: Sources
/{sourceId}:
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 a single source
responses:
200:
body:
example: !include ../examples/eventsapi-sourceid-get-200.json
type: Source
404:
description: Returned when the requested Source ID does not exist
body:
type: ErrorSchema
/type:
displayName: Type definition
get:
description: JSON containing detailed type information
responses:
200:
body:
example: !include ../examples/eventsapi-type-boolean-get-200.json
type: Type
404:
description: Returned when the requested Source ID does not exist
body:
type: ErrorSchema
/state:
displayName: Source state
get:
description: JSON containing the last state change notification sent over the transport protocols
responses:
200:
body:
example: !include ../examples/eventsapi-state-boolean-get-200.json
type: Event
404:
description: Returned when the requested Source ID does not exist
body:
type: ErrorSchema