-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
72 lines (70 loc) · 1.98 KB
/
api.yaml
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
openapi: 3.0.0
info:
title: Exhibit X Web
version: 0.1.0
servers:
- url: https://exhibitx.heroku.com
description: Production
paths:
/exhibit/heartbeat:
post:
summary: Indicates the exhibit is still up and reports state to server
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
activeDisplayId:
type: integer
activeDisplayType:
type: string
responses:
'200':
description: OK
/exhibit/current:
get:
summary: Returns information on the currently running sketch
responses:
'200':
description: Get current display info. Payload depends on type
content:
application/json:
schema:
type: object
properties:
type:
type: string
payload:
type: object
/schedule/edit:
post:
summary: Edits an existing schedule or creates one if it does not already exist
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: integer
title:
type: string
periodSeconds:
type: integer
sketches:
type: array
items:
type: object
properties:
SketchID:
type: integer
downloadURL:
type: string
title:
type: string
responses:
'200':
description: OK