Implement appeal form flow with dynamic pages, integrate punishment selection, and add username retrieval logic. Update API schema and enhance auth.service for username handling.
This commit is contained in:
@@ -22,6 +22,10 @@ tags:
|
||||
description: Retrieves information about the staff team
|
||||
- name: particles
|
||||
description: All actions related to particles
|
||||
- name: forms
|
||||
description: All actions shared between forms
|
||||
- name: appeals
|
||||
description: All action related to appeals
|
||||
paths:
|
||||
/api/team/{team}:
|
||||
$ref: './schemas/team/team.yml#/getTeam'
|
||||
@@ -53,6 +57,8 @@ paths:
|
||||
$ref: './schemas/login/login.yml#/RequestNewUserLogin'
|
||||
/api/login/userLogin/{code}:
|
||||
$ref: './schemas/login/login.yml#/UserLogin'
|
||||
/api/login/getUsername:
|
||||
$ref: './schemas/login/login.yml#/GetUsername'
|
||||
/api/files/save/{filename}:
|
||||
$ref: './schemas/particles/particles.yml#/SaveFile'
|
||||
/api/files/save/{uuid}/{filename}:
|
||||
|
||||
@@ -62,6 +62,25 @@ RequestNewUserLogin:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../generic/errors.yml#/components/schemas/ApiError'
|
||||
GetUsername:
|
||||
get:
|
||||
tags:
|
||||
- login
|
||||
summary: Get the username for the logged in user
|
||||
operationId: getUsername
|
||||
responses:
|
||||
'200':
|
||||
description: Username retrieved
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Username'
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../generic/errors.yml#/components/schemas/ApiError'
|
||||
components:
|
||||
parameters:
|
||||
Code:
|
||||
@@ -72,6 +91,12 @@ components:
|
||||
type: string
|
||||
description: The code to log in with
|
||||
schemas:
|
||||
Username:
|
||||
properties:
|
||||
username:
|
||||
type: string
|
||||
required:
|
||||
- username
|
||||
LoginData:
|
||||
type: object
|
||||
required:
|
||||
|
||||
Reference in New Issue
Block a user