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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user