This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
88 lines (88 loc) · 2.24 KB
/
openapi.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
components:
responses: {}
schemas:
Error:
description: Error message
example: Failed to add peer
title: Error
type: string
x-struct: Elixir.Videoroom.ApiSpec.Error
PeerToken:
description: Peer token used for authorizing websocket connection to the Fishjam Server
example: SFMyNTY.g2gDdAAhiOL4CdsaboT9-jtMzhoI
title: PeerToken
type: string
x-struct: Elixir.VideoroomWeb.ApiSpec.Token
info:
title: Videoroom
version: 0.1.0
openapi: 3.0.0
paths:
/api/room/{room_name}:
get:
callbacks: {}
description: Create a new peer in a room and get its token
operationId: VideoroomWeb.RoomController.show
parameters:
- description: Room name
in: path
name: room_name
required: true
schema:
type: string
requestBody:
content:
application/json:
schema: {}
description: Room params
required: false
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PeerToken'
description: Room response
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Error
summary: Join a room
tags:
- room
/api/room/{room_name}/start_recording:
post:
callbacks: {}
description: Starts recording in the specified room
operationId: VideoroomWeb.RoomController.start_recording
parameters:
- description: Room name
in: path
name: room_name
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PeerToken'
description: Recording started response
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Error
summary: Start recording in a room
tags:
- room
security: []
servers:
- url: http://localhost:5004
variables: {}
tags: []