-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
global.yaml
572 lines (572 loc) · 16.6 KB
/
global.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
components:
responses: {}
schemas:
ConvertedSkin:
description: Data representing a skin that has been converted and uploaded to Java Edition
properties:
hash:
description: The hash of the skin bytes
type: string
is_steve:
description: If the skin is a Steve or an Alex
type: boolean
signature:
description: The signature of the skin data used by Minecraft
type: string
texture_id:
description: The texture id used by Minecraft
type: string
value:
description: The value of the skin data used by Minecraft
type: string
required:
- hash
- texture_id
- value
- singature
- is_steve
title: ConvertedSkin
type: object
Error:
description: Generic format for pretty much every error
required:
- message
properties:
message:
description: The error message
type: string
title: Error
type: object
Link:
description: A link between a Java and a Bedrock account
properties:
bedrock_id:
description: xuid of the Bedrock player
example: 2535432196048835
format: int64
type: integer
java_id:
description: UUID of the Java player
example: d34eb447-6e90-4c78-9281-600df88aef1d
format: uuid
type: string
java_name:
description: Username of the Java player
example: Tim203
type: string
last_name_update:
description: Unix millis of the last Java name update check
format: int64
type: integer
required:
- bedrock_id
- java_id
- java_name
- last_name_update
title: Link
type: object
LinkList:
description: Response schema for a list of links
items:
$ref: '#/components/schemas/Link'
title: LinkList
type: array
RecentConvertedSkinList:
description: List of most recently converted skins. Ordered by most recently converted
properties:
data:
items:
$ref: '#/components/schemas/RecentConvertedSkinReference'
type: array
total_pages:
description: The amount of pages available
type: integer
title: RecentConvertedSkinList
type: object
RecentConvertedSkinReference:
description: The most basic info required to show a Java skin on the site
properties:
id:
description: The converted skin id
type: integer
texture_id:
description: The texture id used by Minecraft
type: string
required:
- id
- texture_id
title: RecentConvertedSkinReference
type: object
Statistics:
description: All publicly available statistics
properties:
pre_upload_queue:
properties:
length:
description: The amount of skins in the pre-upload queue
type: integer
type: object
upload_queue:
properties:
estimated_duration:
description: Estimated duration to upload 'length' amount of skins
format: decimal
type: number
length:
description: The amount of skins in the upload queue
type: integer
type: object
title: Statistics
type: object
UsernameProfile:
description: Username to Floodgate UUID in Mojang Minecraft profile format
properties:
id:
description: The Floodgate UUID of the Bedrock player
example: 0000000000000000000901f64f65c7c3
format: uuid
type: string
name:
description: The Floodgate username
example: .Tim203
type: string
required:
- id
- name
title: UsernameProfile
type: object
XboxGamertagResult:
description: Get gamertag from xuid result
required:
- gamertag
properties:
gamertag:
description: The gamertag
example: Tim203
type: string
title: XboxGamertagResult
type: object
XboxXuidResult:
description: Get xuid from gamertag result
required:
- xuid
properties:
xuid:
description: The xuid
example: 2535432196048835
format: int64
type: integer
title: XboxXuidResult
type: object
info:
title: Global Api
version: 1.0.2
openapi: 3.0.0
paths:
/health:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.HealthController.health
parameters: []
responses:
'204':
description: The server is online
summary: Simple server online check
tags:
- health
/render/front/{texture_id}:
get:
operationId: GlobalApiWeb.Api.RenderController.get_front_texture
parameters:
- description: Java texture id
example: 'a90790c57e181ed13aded14c47ee2f7c8de3533e017ba957af7bdf9df1bde94f'
in: path
name: texture_id
required: true
schema:
type: string
responses: {
'200': {
description: ok
}
}
/render/raw/{texture_id}:
get:
operationId: GlobalApiWeb.Api.RenderController.get_raw_texture
parameters:
- description: Java texture id
example: 'a90790c57e181ed13aded14c47ee2f7c8de3533e017ba957af7bdf9df1bde94f'
in: path
name: texture_id
required: true
schema:
type: string
responses: {
'200': {
description: ok
}
}
/v1/link/bedrock/{xuid}:
get:
callbacks: {}
deprecated: true
operationId: GlobalApiWeb.Api.LinkController.get_bedrock_link_v1
parameters:
- description: Bedrock xuid
example: '2535432196048835'
in: path
name: xuid
required: true
schema:
type: string
responses: {
'400': {
description: Deprecated
}
}
tags:
- link
/v1/link/java/{uuid}:
get:
callbacks: {}
deprecated: true
operationId: GlobalApiWeb.Api.LinkController.get_java_link_v1
parameters:
- description: Java UUID
example: d34eb447-6e90-4c78-9281-600df88aef1d
in: path
name: uuid
required: true
schema:
type: string
responses: {
'400': {
description: Deprecated
}
}
tags:
- link
/v1/stats:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.StatsController.get_all_stats
parameters: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Statistics'
description: Statistics
summary: Get all publicly available Global Api statistics
tags:
- stats
/v1/xbox/gamertag/{xuid}:
get:
callbacks: {}
deprecated: true
operationId: GlobalApiWeb.Api.XboxController.get_gamertag_v1
parameters:
- description: Bedrock xuid
example: '2535432196048835'
in: path
name: xuid
required: true
schema:
type: string
responses: {
'400': {
description: Deprecated
}
}
tags:
- xbox
/v1/xbox/xuid/{gamertag}:
get:
callbacks: {}
deprecated: true
operationId: GlobalApiWeb.Api.XboxController.get_xuid_v1
parameters:
- description: The gamertag of the Bedrock player
in: path
name: gamertag
required: true
schema:
type: string
responses: {
'400': {
description: Deprecated
}
}
tags:
- xbox
/v2/admin/xbox/token: {}
/v2/link/bedrock/{xuid}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.LinkController.get_bedrock_link_v2
parameters:
- description: Bedrock xuid
example: '2535432196048835'
in: path
name: xuid
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Link'
description: Linked accounts or an empty object if there is no account linked
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: No xuid provided or invalid
summary: Get linked Java account from Bedrock xuid
tags:
- link
/v2/link/java/{uuid}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.LinkController.get_java_link_v2
parameters:
- description: Java UUID
example: d34eb447-6e90-4c78-9281-600df88aef1d
in: path
name: uuid
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LinkList'
description: Linked account or an empty object if there is no account linked
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: No UUID provided or invalid
summary: Get linked Bedrock account from Java UUID
tags:
- link
/v2/link/online: {}
/v2/skin/bedrock/recent/{page}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.SkinController.get_recent_uploads.page
parameters:
- description: Number between 1 - page limit. Defaults to 1
example: 1
in: path
name: page
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RecentConvertedSkinList'
description: The most recently uploaded skins. First element has been uploaded most recently etc.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid page number (e.g. negative, decimal, too large)
summary: Get a list of the most recently uploaded skins
tags:
- skin
/v2/skin/bedrock/recent:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.SkinController.get_recent_uploads
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RecentConvertedSkinList'
description: The most recently uploaded skins. First element has been uploaded most recently etc.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid page number (e.g. negative, decimal, too large)
summary: Get a list of the most recently uploaded skins
tags:
- skin
/v2/skin/{xuid}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.SkinController.get_skin
parameters:
- description: Bedrock xuid
example: '2535432196048835'
in: path
name: xuid
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ConvertedSkin'
description: Converted skin or an empty object if there is no skin stored for that player
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid xuid (not an int)
summary: Get the most recently converted skin of a Bedrock player
tags:
- skin
/v2/stats:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.StatsController.get_all_stats (2)
parameters: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Statistics'
description: Statistics
summary: Get all publicly available Global Api statistics
tags:
- stats
/v2/utils/uuid/bedrock_or_java/{username}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.UtilsController.get_bedrock_or_java_uuid
parameters:
- description: The username of the Minecraft player
examples:
bedrock:
value: .Tim203
java:
value: Tim203
in: path
name: username
required: true
schema:
type: string
- description: The prefix used in your Floodgate config
example: .
in: query
name: prefix
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UsernameProfile'
description: The Bedrock xuid in Floodgate UUID format and username. Response made to be identical to the Mojang endpoint
'204':
description: Either the gamertag is too long or too short once the prefix was removed or there is no Xbox account registered to the gamertag
'302':
description: The player is a Java player and we'll redirect you to the Mojang endpoint for that username
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Invalid prefix (no prefix, empty or too long)
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The requested account was not cached and we were not able to call the Xbox Live API (rate limited / not setup)
summary: Utility endpoint to get either a Java UUID or a Bedrock xuid
tags:
- utils
/v2/xbox/batch/gamertag: {}
/v2/xbox/gamertag/{xuid}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.XboxController.get_gamertag_v2
parameters:
- description: The xuid of the Bedrock player
in: path
name: xuid
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/XboxGamertagResult'
description: The gamertag associated with the xuid or an empty object if there is account with the given xuid
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The xuid is invalid (not an int)
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The requested account was not cached and we were not able to call the Xbox Live API (rate limited / not setup)
summary: Get the gamertag from a xuid
tags:
- xbox
/v2/xbox/xuid/{gamertag}:
get:
callbacks: {}
operationId: GlobalApiWeb.Api.XboxController.get_xuid_v2
parameters:
- description: The gamertag of the Bedrock player
in: path
name: gamertag
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/XboxXuidResult'
description: The xuid associated with the gamertag or an empty object if there is account with the given gamertag
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The gamertag is invalid (empty or longer than 16 chars)
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: The requested account was not cached and we were not able to call the Xbox Live API (rate limited / not setup)
summary: Get the xuid from a gamertag
tags:
- xbox
security: []
servers:
- url: https://api.geysermc.org
variables: {}
tags: []