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:
@@ -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