-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbroker-swagger.yaml
110 lines (109 loc) · 2.64 KB
/
broker-swagger.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
openapi: 3.0.0
info:
title: RLBot Twitch Broker
description: Allows custom Rocket League bots to register themselves with a central broker.
contact:
email: [email protected]
license:
name: MIT
url: https://opensource.org/licenses/MIT
version: 1.0.0
externalDocs:
description: Find out more about RLBot
url: http://www.rlbot.org/
servers:
- url: /
tags:
- name: register
description: Allows bots to register themselves
- name: chat
description: Operations that allow chat interaction. A useful substitute
for twitch chat when testing.
- name: static
description: Serves static assets.
paths:
/register/actionServer:
post:
tags:
- register
operationId: registerActionServer
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ActionServerRegistration'
required: true
responses:
"200":
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
"400":
description: Invalid status value
/chat:
post:
tags:
- chat
operationId: sendChat
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ChatLine'
required: true
responses:
"200":
description: successfully received chat
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/static/{filename}:
get:
tags:
- static
parameters:
- name: filename
in: path
required: true
schema:
type: string
responses:
"200":
description: load static assets
content:
text/html:
schema:
type: string
components:
schemas:
ActionServerRegistration:
type: object
properties:
baseUrl:
type: string
example: 'http://127.0.0.1:8080'
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
example: 200
message:
type: string
example: Succesfully processed operation
example:
code: 200
message: Succesfully processed operation
ChatLine:
type: object
properties:
username:
type: string
example: GooseFairy
message:
type: string
example: XT6 is the command I want!