-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
326 lines (321 loc) · 25.9 KB
/
index.html
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE HTML><html><head><title>Iataaa API documentation</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="https://github.com/raml2html/raml2html 4.1.1"><link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/styles/default.min.css"><script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script><script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script><script type="text/javascript">
$(document).ready(function() {
$('.page-header pre code, .top-resource-description pre code, .modal-body pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
$('[data-toggle]').click(function() {
var selector = $(this).data('target') + ' pre code';
$(selector).each(function(i, block) {
hljs.highlightBlock(block);
});
});
// open modal on hashes like #_action_get
$(window).bind('hashchange', function(e) {
var anchor_id = document.location.hash.substr(1); //strip #
var element = $('#' + anchor_id);
// do we have such element + is it a modal? --> show it
if (element.length && element.hasClass('modal')) {
element.modal('show');
}
});
// execute hashchange on first page load
$(window).trigger('hashchange');
// remove url fragment on modal hide
$('.modal').on('hidden.bs.modal', function() {
try {
if (history && history.replaceState) {
history.replaceState({}, '', '#');
}
} catch(e) {}
});
});
</script><style>
.hljs {
background: transparent;
}
.parent {
color: #999;
}
.list-group-item > .badge {
float: none;
margin-right: 6px;
}
.panel-title > .methods {
float: right;
}
.badge {
border-radius: 0;
text-transform: uppercase;
width: 70px;
font-weight: normal;
color: #f3f3f6;
line-height: normal;
}
.badge_get {
background-color: #63a8e2;
}
.badge_post {
background-color: #6cbd7d;
}
.badge_put {
background-color: #22bac4;
}
.badge_delete {
background-color: #d26460;
}
.badge_patch {
background-color: #ccc444;
}
.list-group, .panel-group {
margin-bottom: 0;
}
.panel-group .panel+.panel-white {
margin-top: 0;
}
.panel-group .panel-white {
border-bottom: 1px solid #F5F5F5;
border-radius: 0;
}
.panel-white:last-child {
border-bottom-color: white;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel-white .panel-heading {
background: white;
}
.tab-pane ul {
padding-left: 2em;
}
.tab-pane h1 {
font-size: 1.3em;
}
.tab-pane h2 {
font-size: 1.2em;
padding-bottom: 4px;
border-bottom: 1px solid #ddd;
}
.tab-pane h3 {
font-size: 1.1em;
}
.tab-content {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 10px;
}
#sidebar {
margin-top: 30px;
padding-right: 5px;
overflow: auto;
height: 90%;
}
.top-resource-description {
border-bottom: 1px solid #ddd;
background: #fcfcfc;
padding: 15px 15px 0 15px;
margin: -15px -15px 10px -15px;
}
.resource-description {
border-bottom: 1px solid #fcfcfc;
background: #fcfcfc;
padding: 15px 15px 0 15px;
margin: -15px -15px 10px -15px;
}
.resource-description p:last-child {
margin: 0;
}
.list-group .badge {
float: left;
}
.method_description {
margin-left: 85px;
}
.method_description p:last-child {
margin: 0;
}
.list-group-item {
cursor: pointer;
}
.list-group-item:hover {
background-color: #f5f5f5;
}
pre code {
overflow: auto;
word-wrap: normal;
white-space: pre;
}
.items {
background: #f5f5f5;
color: #333;
border: 1px solid #ccc;
border-radius: 4px;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
}
.examples {
margin-left: 0.5em;
}
.resource-modal li > ul {
margin-bottom: 1em;
}
</style></head><body data-spy="scroll" data-target="#sidebar"><div class="container"><div class="row"><div class="col-md-9" role="main"><div class="page-header"><h1>Iataaa API documentation <small>version v1.0</small></h1><p></p><h3 id="home"><a href="#home">Home</a></h3><p>Web platform which manages draught game beetween web services.</p></div><div class="panel panel-default"><div class="panel-heading"><h3 id="api_games" class="panel-title">/api/games</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_api_games"><span class="parent"></span>/api/games</a> <span class="methods"><a href="#api_games_get"><span class="badge badge_get">get</span></a> <a href="#api_games_post"><span class="badge badge_post">post</span></a></span></h4></div><div id="panel_api_games" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#api_games_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>Get game names.</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#api_games_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>Create game.</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_games_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent"></span>/api/games</h4></div><div class="modal-body"><div class="alert alert-info"><p>Get game names.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_games_get_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_games_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (array of )</em></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": [
"game1",
"game2"
],
"status": "OK"
}</code></pre></div></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_games_post"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent"></span>/api/games</h4></div><div class="modal-body"><div class="alert alert-info"><p>Create game.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_games_post_request" data-toggle="tab">Request</a></li><li><a href="#api_games_post_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_games_post_request"><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>gameID</strong>: <em>required (string)</em></li><li><strong>players</strong>: <em>required (array of )</em><p>Players Names.</p></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"gameID": "aiGame",
"players": [
"p1",
"p2"
]
}</code></pre></div></div><div class="tab-pane" id="api_games_post_response"><h2>HTTP status code <a href="http://httpstatus.es/204" target="_blank">204</a></h2><p>Game created.</p><h2>HTTP status code <a href="http://httpstatus.es/409" target="_blank">409</a></h2><p>Error in creation game.</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (array of GamePlayers)</em><p><strong>Items</strong>: GamePlayers</p><div class="items"><ul><li><strong>gameID</strong>: <em>required (string)</em></li><li><strong>players</strong>: <em>required (array of )</em><p>Players Names.</p></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"gameID": "aiGame",
"players": [
"p1",
"p2"
]
}</code></pre></div></div></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": [
{
"gameID": "aiGame1",
"players": [
"p1",
"p2"
]
},
{
"gameID": "aiGame2",
"players": [
"p3",
"p4"
]
}
],
"status": "PLAYERS_NO_FOUND"
}</code></pre></div></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_api_games__gameid_"><span class="parent">/api/games</span>/{gameId}</a> <span class="methods"><a href="#api_games__gameid__get"><span class="badge badge_get">get</span></a> <a href="#api_games__gameid__delete"><span class="badge badge_delete">delete</span></a></span></h4></div><div id="panel_api_games__gameid_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#api_games__gameid__get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>Get game with game id.</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#api_games__gameid__delete'" class="list-group-item"><span class="badge badge_delete">delete</span><div class="method_description"><p>Delete game with game id.</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_games__gameid__get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/api/games</span>/{gameId}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Get game with game id.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_games__gameid__get_request" data-toggle="tab">Request</a></li><li><a href="#api_games__gameid__get_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_games__gameid__get_request"><h3>URI Parameters</h3><ul><li><strong>gameId</strong>: <em>required (string)</em><p>Game id.</p></li></ul></div><div class="tab-pane" id="api_games__gameid__get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (object)</em><ul><li><strong>id</strong>: <em>required (string)</em></li><li><strong>players</strong>: <em>required (array of Player)</em><p><strong>Items</strong>: Player</p><div class="items"><ul><li><strong>type</strong>: <em>required (one of IA, HUMAN)</em></li><li><strong>name</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>difficulty</strong>: <em>required (one of EASY, MEDIUM, HARD)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
}</code></pre></div></div></li><li><strong>board</strong>: <em>required (object)</em><ul><li><strong>list</strong>: <em>required (array of Case)</em></li></ul></li><li><strong>whiteTurn</strong>: <em>required (boolean)</em></li></ul></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": {
"id": "string",
"players": [
{
"type": "IA",
"name": "ai1",
"url": "localhost:9999",
"difficulty": "HARD"
},
{
"type": "IA",
"name": "ai2",
"url": "localhost:9998",
"difficulty": "HARD"
}
],
"board": {
"list": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3
]
},
"whiteTurn": true
},
"status": "OK"
}</code></pre></div></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_games__gameid__delete"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete</span> <span class="parent">/api/games</span>/{gameId}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Delete game with game id.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_games__gameid__delete_request" data-toggle="tab">Request</a></li><li><a href="#api_games__gameid__delete_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_games__gameid__delete_request"><h3>URI Parameters</h3><ul><li><strong>gameId</strong>: <em>required (string)</em><p>Game id.</p></li></ul></div><div class="tab-pane" id="api_games__gameid__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/204" target="_blank">204</a></h2><p>Game deleted.</p><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Game not found.</p></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="api_players" class="panel-title">/api/players</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_api_players"><span class="parent"></span>/api/players</a> <span class="methods"><a href="#api_players_post"><span class="badge badge_post">post</span></a> <a href="#api_players_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_api_players" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#api_players_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>Create player.</p></div><div class="clearfix"></div></div><div onclick="window.location.href = '#api_players_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>Get players.</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_players_post"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent"></span>/api/players</h4></div><div class="modal-body"><div class="alert alert-info"><p>Create player.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_players_post_request" data-toggle="tab">Request</a></li><li><a href="#api_players_post_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_players_post_request"><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>type</strong>: <em>required (one of IA, HUMAN)</em></li><li><strong>name</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>difficulty</strong>: <em>required (one of EASY, MEDIUM, HARD)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
}</code></pre></div></div><div class="tab-pane" id="api_players_post_response"><h2>HTTP status code <a href="http://httpstatus.es/204" target="_blank">204</a></h2><p>Player created.</p><h2>HTTP status code <a href="http://httpstatus.es/400" target="_blank">400</a></h2><p>Error in request.</p><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (object)</em><ul><li><strong>type</strong>: <em>required (one of IA, HUMAN)</em></li><li><strong>name</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>difficulty</strong>: <em>required (one of EASY, MEDIUM, HARD)</em></li></ul></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": {
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
},
"status": "NAME_PLAYER_NOT_AVAILABLE"
}</code></pre></div></div></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_players_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent"></span>/api/players</h4></div><div class="modal-body"><div class="alert alert-info"><p>Get players.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_players_get_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_players_get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (array of Player)</em><p><strong>Items</strong>: Player</p><div class="items"><ul><li><strong>type</strong>: <em>required (one of IA, HUMAN)</em></li><li><strong>name</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>difficulty</strong>: <em>required (one of EASY, MEDIUM, HARD)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
}</code></pre></div></div></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": [
{
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
},
{
"type": "IA",
"name": "ia2",
"url": "localhost:9998",
"difficulty": "HARD"
}
],
"status": "OK"
}</code></pre></div></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_api_players__playername_"><span class="parent">/api/players</span>/{playerName}</a> <span class="methods"><a href="#api_players__playername__get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_api_players__playername_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#api_players__playername__get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>Get player with name.</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_players__playername__get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/api/players</span>/{playerName}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Get player with name.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_players__playername__get_request" data-toggle="tab">Request</a></li><li><a href="#api_players__playername__get_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_players__playername__get_request"><h3>URI Parameters</h3><ul><li><strong>playerName</strong>: <em>required (string)</em><p>Player Name.</p></li></ul></div><div class="tab-pane" id="api_players__playername__get_response"><h2>HTTP status code <a href="http://httpstatus.es/200" target="_blank">200</a></h2><h3>Body</h3><p><strong>Media type</strong>: application/json</p><p><strong>Type</strong>: object</p><strong>Properties</strong><ul><li><strong>content</strong>: <em>required (object)</em><ul><li><strong>type</strong>: <em>required (one of IA, HUMAN)</em></li><li><strong>name</strong>: <em>required (string)</em></li><li><strong>url</strong>: <em>required (string)</em></li><li><strong>difficulty</strong>: <em>required (one of EASY, MEDIUM, HARD)</em></li></ul></li><li><strong>status</strong>: <em>required (one of OK, ERROR, INVALIDE_ARGUMENT, PLAYERS_NO_FOUND, NAME_PLAYER_NOT_AVAILABLE, NAME_GAME_NOT_AVAILABLE, BUSY_IA)</em></li></ul><p><strong>Example</strong>:</p><div class="examples"><pre><code>{
"content": {
"type": "IA",
"name": "ia1",
"url": "localhost:9999",
"difficulty": "HARD"
},
"status": "OK"
}</code></pre></div></div></div></div></div></div></div></div><div class="panel panel-white resource-modal"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_api_players__playerid_"><span class="parent">/api/players</span>/{playerId}</a> <span class="methods"><a href="#api_players__playerid__delete"><span class="badge badge_delete">delete</span></a></span></h4></div><div id="panel_api_players__playerid_" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#api_players__playerid__delete'" class="list-group-item"><span class="badge badge_delete">delete</span><div class="method_description"><p>Get player with name.</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="api_players__playerid__delete"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_delete">delete</span> <span class="parent">/api/players</span>/{playerId}</h4></div><div class="modal-body"><div class="alert alert-info"><p>Get player with name.</p></div><ul class="nav nav-tabs"><li class="active"><a href="#api_players__playerid__delete_request" data-toggle="tab">Request</a></li><li><a href="#api_players__playerid__delete_response" data-toggle="tab">Response</a></li></ul><div class="tab-content"><div class="tab-pane active" id="api_players__playerid__delete_request"><h3>URI Parameters</h3><ul><li><strong>playerId</strong>: <em>required (string)</em><p>Player id.</p></li></ul></div><div class="tab-pane" id="api_players__playerid__delete_response"><h2>HTTP status code <a href="http://httpstatus.es/204" target="_blank">204</a></h2><p>Player deleted.</p><h2>HTTP status code <a href="http://httpstatus.es/404" target="_blank">404</a></h2><p>Player not found.</p></div></div></div></div></div></div></div></div></div></div></div><div class="col-md-3"><div id="sidebar" class="hidden-print affix" role="complementary"><ul class="nav nav-pills nav-stacked"><li><a href="#api_games">/api/games</a></li><li><a href="#api_players">/api/players</a></li></ul></div></div></div></div></body></html>