-
Notifications
You must be signed in to change notification settings - Fork 3
/
action-swagger.yaml
115 lines (115 loc) · 3.02 KB
/
action-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
110
111
112
113
114
115
openapi: 3.0.0
info:
title: Bot Action Server
description: Allows custom Rocket League bots to accept tactical suggestions in
the middle of a game.
contact:
email: [email protected]
license:
name: MIT
url: https://opensource.org/licenses/MIT
version: 1.1.0
externalDocs:
description: Find out more about RLBot
url: http://www.rlbot.org/
servers:
- url: /
tags:
- name: action
description: Actions that the bot can take
paths:
/action/currentlyAvailable:
get:
tags:
- action
operationId: get_actions_currently_available
responses:
"200":
description: successful operation
content:
application/json:
schema:
type: array
description: If an action server is associated with multiple distinct bots or script entities, it can return an AvailableActions for each.
items:
$ref: '#/components/schemas/AvailableActions'
/action/choose:
post:
tags:
- action
operationId: choose_action
requestBody:
description: Action to choose
content:
application/json:
schema:
$ref: '#/components/schemas/ActionChoice'
required: true
responses:
"200":
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
"400":
description: Invalid status value
components:
schemas:
StrategicCategory:
type: string
enum:
- neutral
- offense
- defense
BotAction:
required:
- actionType
type: object
properties:
description:
type: string
example: Demolish enemy bot named SomeBot
actionType:
type: string
example: demolishEnemy
strategicCategory:
$ref: '#/components/schemas/StrategicCategory'
data:
type: object
additionalProperties: true
AvailableActions:
type: object
properties:
entityName:
type: string
description: The name of the bot or script that these actions are associated with.
example: SomeBot
currentAction:
$ref: '#/components/schemas/BotAction'
availableActions:
type: array
items:
$ref: '#/components/schemas/BotAction'
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
ActionChoice:
type: object
properties:
action:
$ref: '#/components/schemas/BotAction'
entityName:
type: string
description: The name of the bot or script that this action is associated with.
example: SomeBot