Add endpoints and schema for history retrieval by UUID
Introduced a new API endpoint to fetch all punishment history for a specified UUID. Updated existing schemas, controllers, and mappers to support this functionality. Adjusted login endpoints to improve request handling and streamlined frontend form setup for appeals.
This commit is contained in:
@@ -89,7 +89,7 @@ getHistoryForUuid:
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserType'
|
||||
- $ref: '#/components/parameters/HistoryType'
|
||||
- $ref: '#/components/parameters/Uuid'
|
||||
- $ref: '../generic/parameters.yml#/components/parameters/Uuid'
|
||||
- $ref: '#/components/parameters/Page'
|
||||
responses:
|
||||
'200':
|
||||
@@ -158,7 +158,7 @@ getTotalResultsForUuidSearch:
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserType'
|
||||
- $ref: '#/components/parameters/HistoryType'
|
||||
- $ref: '#/components/parameters/Uuid'
|
||||
- $ref: '../generic/parameters.yml#/components/parameters/Uuid'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful operation
|
||||
@@ -195,6 +195,22 @@ getHistoryById:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../generic/errors.yml#/components/schemas/ApiError'
|
||||
getAllHistoryForUUID:
|
||||
get:
|
||||
tags:
|
||||
- history
|
||||
summary: Gets all history for specified UUID
|
||||
description: Retrieves all history for specified UUID
|
||||
operationId: getAllHistoryForUUID
|
||||
parameters:
|
||||
- $ref: '../generic/parameters.yml#/components/parameters/Uuid'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PunishmentHistoryList'
|
||||
components:
|
||||
parameters:
|
||||
HistoryType:
|
||||
@@ -212,13 +228,6 @@ components:
|
||||
schema:
|
||||
type: string
|
||||
description: The (partial) username to search for
|
||||
Uuid:
|
||||
name: uuid
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: The uuid of the desired user
|
||||
UserType:
|
||||
name: userType
|
||||
in: path
|
||||
|
||||
Reference in New Issue
Block a user