Introduced a new API endpoint `/history/total` for fetching the total counts of bans, mutes, kicks, and warnings. Added database mapping and DTO classes to support this functionality, along with necessary schema and controller updates.
27 lines
842 B
YAML
27 lines
842 B
YAML
openapi: 3.0.4
|
|
info:
|
|
title: Altitude Web API
|
|
description: |-
|
|
The API for the Altitude website
|
|
version: 1.0.0
|
|
servers:
|
|
- url: https://alttd.com/api/v3
|
|
tags:
|
|
- name: history
|
|
description: Retrieves punishment history
|
|
- name: team
|
|
description: Retrieves information about the staff team
|
|
paths:
|
|
/team/{team}:
|
|
$ref: './schemas/team/team.yml#/getTeam'
|
|
/history/{userType}/search/{type}:
|
|
$ref: './schemas/bans/bans.yml#/getUserNames'
|
|
/history/{userType}/name/{type}/{user}/{page}:
|
|
$ref: './schemas/bans/bans.yml#/getHistoryForUsers'
|
|
/history/{userType}/name/{type}/{page}:
|
|
$ref: './schemas/bans/bans.yml#/getHistoryForAll'
|
|
/history/{userType}/uuid/{type}/{uuid}/{page}:
|
|
$ref: './schemas/bans/bans.yml#/getHistoryForUuid'
|
|
/history/total:
|
|
$ref: './schemas/bans/bans.yml#/getTotalPunishments'
|