-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.json
More file actions
100 lines (100 loc) · 2.67 KB
/
Copy pathswagger.json
File metadata and controls
100 lines (100 loc) · 2.67 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
{
"openapi": "3.0.3",
"info": {
"title": "Voxray API",
"description": "Voxray voice pipeline server: WebSocket and WebRTC transport endpoints.",
"version": "1.0"
},
"servers": [
{
"url": "http://localhost:8080"
}
],
"paths": {
"/webrtc/offer": {
"post": {
"tags": ["webrtc"],
"summary": "Submit WebRTC offer",
"description": "Accepts a WebRTC SDP offer and returns an SDP answer. Available when transport is smallwebrtc or both.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebrtcOfferRequest"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebrtcOfferResponse"
}
}
}
},
"400": {
"description": "Invalid offer payload",
"content": {
"application/json": {
"schema": { "type": "string" }
}
}
},
"405": {
"description": "Method not allowed",
"content": {
"application/json": {
"schema": { "type": "string" }
}
}
},
"500": {
"description": "Failed to start transport",
"content": {
"application/json": {
"schema": { "type": "string" }
}
}
},
"503": {
"description": "Service unavailable (e.g. Opus encoder unavailable)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebrtcErrorResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"WebrtcErrorResponse": {
"type": "object",
"properties": {
"error": { "type": "string" }
}
},
"WebrtcOfferRequest": {
"type": "object",
"properties": {
"offer": { "type": "string" }
}
},
"WebrtcOfferResponse": {
"type": "object",
"properties": {
"answer": { "type": "string" }
}
}
}
}
}