forked from katyaap/appearin.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexternalapi-openapi.json
More file actions
186 lines (186 loc) · 5.77 KB
/
externalapi-openapi.json
File metadata and controls
186 lines (186 loc) · 5.77 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"openapi": "3.0.0",
"info": {
"title": "Whereby",
"version": "1.0.0",
"description": "Whereby API"
},
"servers": [
{
"url": "https://api.whereby.dev/v1",
"description": "Production server"
}
],
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "The bearer token will be provided upon request and it is up to the client to keep it secret. Every api call needs to contain this token in order to authenticate and authorize the client.\n"
}
},
"responses": {
"UnauthorizedError": {
"description": "Access token is missing or invalid"
},
"NotFoundError": {
"description": "The requested resource doesn't exist"
}
},
"security": [
{
"BearerAuth": []
}
],
"parameters": {
"meetingId": {
"name": "meetingId",
"in": "path",
"description": "meeting ID.",
"required": true,
"example": "1"
}
},
"schemas": {
"Meeting": {
"type": "object",
"properties": {
"meetingId": {
"type": "string",
"description": "The ID of the meeting.",
"example": "1"
},
"roomUrl": {
"type": "string",
"format": "uri",
"description": "The URL to room where the meeting will be hosted.",
"example": "https://example.com/test-room-9378ce50-e0c4-4661-a2fb-f75ed4e168b0"
},
"startDate": {
"type": "string",
"format": "date-time",
"description": "When the meeting starts."
},
"endDate": {
"type": "string",
"format": "date-time",
"description": "When the meeting ends."
}
}
}
}
},
"paths": {
"/meetings": {
"post": {
"summary": "Create meeting",
"description": "Creates a meeting as specified.\nIt will also create a transient room that is guaranteed to be available for specified start and end time. Some time after the meeting has ended, the transient room will be automatically deleted.\nThe URL to this room is present in the response.\n",
"requestBody": {
"description": "Meeting to add.",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"startDate",
"endDate"
],
"properties": {
"roomNamePrefix": {
"type": "string",
"maxLength": 40,
"pattern": "[/][a-zA-Z0-9]{0,39}",
"example": "/example-prefix",
"description": "This will be used as the prefix for the room name. Note that the room name needs to start with /\nif it is provided.\n"
},
"roomMode": {
"type": "string",
"default": "normal",
"enum": [
"group",
"normal"
],
"example": "normal",
"description": "The mode of the created transient room.\n`normal` is the default room mode and should be used for meetings up to 4 partipants.\n`group` should be used for meetings that require more than 4 partipants.\n"
},
"startDate": {
"type": "string",
"format": "date-time",
"description": "When the meeting starts. This has to be newer than the current date."
},
"endDate": {
"type": "string",
"format": "date-time",
"description": "When the meeting ends. This has to be the same or after the startDate."
}
}
}
}
}
},
"responses": {
"200": {
"description": "The resource was created successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Meeting"
}
}
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
}
}
}
},
"/meetings/{meetingId}": {
"delete": {
"summary": "Delete meeting",
"description": "Deletes the specified meeting. The endpoint is idempotent, meaning it will return the same response even if the meeting has already been deleted.\n",
"parameters": [
{
"$ref": "#/components/parameters/meetingId"
}
],
"responses": {
"204": {
"description": "The resource was deleted successfully."
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
}
}
},
"get": {
"summary": "Get meeting",
"description": "Returns the specified meeting.\n",
"parameters": [
{
"$ref": "#/components/parameters/meetingId"
}
],
"responses": {
"200": {
"description": "A JSON object representing the meeting.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Meeting"
}
}
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
"404": {
"$ref": "#/components/responses/NotFoundError"
}
}
}
}
},
"tags": []
}