Modified reference/OpenAPI.yml

This commit is contained in:
2023-03-13 20:05:33 +01:00
parent 11cb2a2b13
commit cafc067125
+188 -127
View File
@@ -32,6 +32,7 @@ paths:
$ref: '#/components/schemas/Weapon' $ref: '#/components/schemas/Weapon'
operationId: get-weapon-list operationId: get-weapon-list
description: '' description: ''
x-internal: true
/maps/: /maps/:
get: get:
summary: List Maps summary: List Maps
@@ -47,6 +48,7 @@ paths:
items: items:
$ref: '#/components/schemas/Map' $ref: '#/components/schemas/Map'
operationId: get-map-list operationId: get-map-list
x-internal: true
/client/servers/: /client/servers/:
get: get:
summary: Get Server list summary: Get Server list
@@ -63,7 +65,7 @@ paths:
$ref: '#/components/schemas/Server' $ref: '#/components/schemas/Server'
operationId: get-server-list operationId: get-server-list
parameters: [] parameters: []
'/client/server/{serverId}/players': '/client/servers/{serverId}/players':
get: get:
summary: List Players for Server summary: List Players for Server
tags: tags:
@@ -90,6 +92,24 @@ paths:
type: integer type: integer
x-stoplight: x-stoplight:
id: hjd0pspfmfxi9 id: hjd0pspfmfxi9
last_seen:
type: string
x-stoplight:
id: 2t122mb6uvsdr
format: date-time
first_seen:
type: string
x-stoplight:
id: xlhtx3nbfvbl0
format: date-time
max_kill_distance:
type: number
x-stoplight:
id: 2zvmxjuuk4m04
avg_kill_distance:
type: number
x-stoplight:
id: 6x852k2av6biq
examples: examples:
Example 1: Example 1:
value: value:
@@ -593,51 +613,6 @@ paths:
application/json: application/json:
schema: schema:
type: object type: object
properties:
doubletake:
type: string
arc_launcher:
type: string
mastiff:
type: string
softball:
type: string
wingman:
type: string
invalid:
type: string
grenade_sonar:
type: string
semipistol:
type: string
grenade_electric_smoke:
type: string
sniper:
type: string
shotgun_pistol:
type: string
shotgun:
type: string
frag_grenade:
type: string
smr:
type: string
fall:
type: string
epg:
type: string
human_execution:
type: string
pilot_emptyhanded:
type: string
defender:
type: string
thermite_grenade:
type: string
satchel:
type: string
wingman_n:
type: string
x-examples: x-examples:
Example 1: Example 1:
doubletake: '119' doubletake: '119'
@@ -662,31 +637,107 @@ paths:
thermite_grenade: '150' thermite_grenade: '150'
satchel: '64' satchel: '64'
wingman_n: '620' wingman_n: '620'
properties:
'[weaponID]':
x-stoplight:
id: errxxb306byhf
type: object
properties:
kills:
type: integer
x-stoplight:
id: tbll8rypmptlm
avg_kill_distance:
type: number
x-stoplight:
id: njeuvklvfz71x
max_kill_distance:
type: number
x-stoplight:
id: j5w0u047enoaj
examples: examples:
Example 1: Example 1:
value: value:
doubletake: '119' sniper:
arc_launcher: '1' kills: '1180'
mastiff: '359' avg_kill_distance: '806'
softball: '137' max_kill_distance: '3454'
wingman: '87' wingman_n:
invalid: '20' kills: '831'
grenade_sonar: '30' avg_kill_distance: '608'
semipistol: '177' max_kill_distance: '2834'
grenade_electric_smoke: '12' mastiff:
sniper: '1104' kills: '425'
shotgun_pistol: '94' avg_kill_distance: '318'
shotgun: '66' max_kill_distance: '1570'
frag_grenade: '1' epg:
smr: '27' kills: '386'
fall: '1' avg_kill_distance: '468'
epg: '265' max_kill_distance: '3023'
human_execution: '4' semipistol:
pilot_emptyhanded: '65' kills: '196'
defender: '62' avg_kill_distance: '370'
thermite_grenade: '150' max_kill_distance: '1104'
satchel: '64' thermite_grenade:
wingman_n: '620' kills: '142'
avg_kill_distance: '469'
max_kill_distance: '1472'
softball:
kills: '139'
avg_kill_distance: '435'
max_kill_distance: '1303'
doubletake:
kills: '136'
avg_kill_distance: '852'
max_kill_distance: '2618'
shotgun_pistol:
kills: '135'
avg_kill_distance: '439'
max_kill_distance: '1419'
wingman:
kills: '98'
avg_kill_distance: '473'
max_kill_distance: '1854'
shotgun:
kills: '87'
avg_kill_distance: '311'
max_kill_distance: '745'
pilot_emptyhanded:
kills: '65'
avg_kill_distance: '44'
max_kill_distance: '115'
defender:
kills: '62'
avg_kill_distance: '1070'
max_kill_distance: '3835'
satchel:
kills: '54'
avg_kill_distance: '503'
max_kill_distance: '1047'
grenade_sonar:
kills: '43'
avg_kill_distance: '491'
max_kill_distance: '1205'
smr:
kills: '27'
avg_kill_distance: '490'
max_kill_distance: '1405'
grenade_electric_smoke:
kills: '8'
avg_kill_distance: '527'
max_kill_distance: '987'
human_execution:
kills: '4'
avg_kill_distance: '45'
max_kill_distance: '71'
fall:
kills: '1'
avg_kill_distance: '876'
max_kill_distance: '876'
arc_launcher:
kills: '1'
avg_kill_distance: '454'
max_kill_distance: '454'
operationId: get-weapons-report-for-server operationId: get-weapons-report-for-server
parameters: [] parameters: []
x-internal: false x-internal: false
@@ -879,8 +930,6 @@ components:
name: name:
type: string type: string
example: fvnknoots 7v7 example: fvnknoots 7v7
description:
type: string
Kill: Kill:
title: Kill title: Kill
x-stoplight: x-stoplight:
@@ -1033,12 +1082,22 @@ components:
id: b52mxxdsbv1wx id: b52mxxdsbv1wx
type: object type: object
properties: properties:
weapon: kills:
$ref: '#/components/schemas/Weapon'
killCount:
type: integer type: integer
deathCount: x-stoplight:
id: thiudrlmaghe0
deaths:
type: integer type: integer
x-stoplight:
id: ptc32dgqrnh6c
max_kill_distance:
type: integer
x-stoplight:
id: v2ppgf9ogdayj
avg_kill_distance:
type: integer
x-stoplight:
id: yjxzjb8ap9cpi
PrefferedMap: PrefferedMap:
title: PrefferedMap title: PrefferedMap
x-stoplight: x-stoplight:
@@ -1118,71 +1177,73 @@ components:
schema: schema:
type: object type: object
properties: properties:
player: kills:
$ref: '#/components/schemas/Player'
server:
$ref: '#/components/schemas/Server'
total_kills:
type: integer type: integer
description: Number of kills of the user in this server description: Number of kills of the user in this server
total_deaths: x-stoplight:
id: 7e1sj7qgzklj1
deaths:
type: integer type: integer
description: Number of deaths of the user in this server description: Number of deaths of the user in this server
first_record: x-stoplight:
id: 4d4oy7nv32o0q
first_time_seen:
type: string type: string
format: date-time format: date-time
last_record: x-stoplight:
id: e8yjr6c67n1nc
last_time_seen:
type: string type: string
format: date-time format: date-time
most_used_weapons: x-stoplight:
type: array id: xgrbrju5f2lyc
maxItems: 5 max_kill_distance:
items: type: number
x-stoplight:
id: qqqfcfqcy028d
avg_kill_distance:
type: number
x-stoplight:
id: rxhly8blndl4v
weapons:
type: object
x-stoplight:
id: t92oo7w7hu9kf
properties:
'[weaponId]':
$ref: '#/components/schemas/PrefferedWeapon' $ref: '#/components/schemas/PrefferedWeapon'
preferred_maps: x-stoplight:
type: array id: oxpzriozk4s16
maxItems: 5
items:
$ref: '#/components/schemas/PrefferedMap'
furthest_kill_distance:
type: number
average_kill_distance:
type: number
examples: examples:
Example 1: Example 1:
value: value:
player: last_seen: 'Mon Mar 13 2023 13:42:15 GMT+0100 (heure normale d’Europe centrale)'
id: 0 max_kill_distance: '1160'
name: Legonzaur avg_kill_distance: '400.5000000000000000'
opt-out: false first_seen: 'Mon Mar 13 2023 13:30:13 GMT+0100 (heure normale d’Europe centrale)'
hide_TOS: false deaths: '21'
server: kills: '22'
id: '1' weapons:
name: fvnknoots 7v7 epg:
total_kills: 9865 kills: '21'
total_deaths: 9954 deaths: '8'
first_record: '2019-08-24T14:15:22Z' avg_kill_distance: '395'
last_record: '2019-08-24T14:15:22Z' max_kill_distance: '1160'
most_used_weapons: thermite_grenade:
- weapon: kills: '1'
id: 0 deaths: '0'
internal: mp_weapon_sniper avg_kill_distance: '505'
name: Kraber max_kill_distance: '505'
description: string mastiff:
image: 'https://static.wikia.nocookie.net/titanfall_gamepedia/images/8/8b/Icon_kraber.png' kills: '0'
killCount: 0 deaths: '5'
deathCount: 0 avg_kill_distance: '0'
preferred_maps: max_kill_distance: '0'
- map: wingman_n:
id: 0 kills: '0'
internal: mp_angel_city deaths: '8'
name: Angel City avg_kill_distance: '0'
description: string max_kill_distance: '0'
image: 'https://media.contentapi.ea.com/content/dam/eacom/en-us/common/articles-tf2-welcome-header.jpg.adapt.320w.jpg'
killCount: 0
deathCount: 0
furthest_kill_distance: 0
average_kill_distance: 0
Player-report: Player-report:
description: OK description: OK
content: content: