Refactor API structure and endpoints for history and team.

Updated API definitions and endpoints to better support punishment history and team queries. Introduced new parameters, schemas, and operations to improve functionality, and reorganized related controllers into appropriate packages.
This commit is contained in:
2025-04-10 22:46:30 +02:00
parent 2137459e9b
commit 1585011143
5 changed files with 201 additions and 77 deletions
+12 -6
View File
@@ -7,10 +7,16 @@ info:
servers:
- url: https://alttd.com/api/v3
tags:
- name: player
description: Retrieve player information
- name: history
description: Retrieves punishment history
- name: team
description: Retrieves information about the staff team
paths:
/team:
$ref: './sub_api/team/team.yml'
/history:
$ref: './sub_api/bans/bans.yml'
/team/{team}:
$ref: './sub_api/team/team.yml#/getTeam'
/history/{userType}/search/{type}:
$ref: './sub_api/bans/bans.yml#/getUserNames'
/history/{userType}/{type}/{user}:
$ref: './sub_api/bans/bans.yml#/getHistoryForUsers'
/history/{userType}/{type}/{uuid}:
$ref: './sub_api/bans/bans.yml#/getHistoryForUuid'