Add API endpoint to check staff application availability and enforce open/close periods

This commit is contained in:
2025-10-17 21:42:32 +02:00
parent 8e9e267fb0
commit 5eaeb3552a
3 changed files with 43 additions and 0 deletions
+2
View File
@@ -57,6 +57,8 @@ paths:
$ref: './schemas/forms/appeal/appeal.yml#/DiscordAppeal'
/api/apply/staff-application:
$ref: './schemas/forms/staff_apply/staff_apply.yml#/StaffApply'
/api/apply/staff-application-is-open:
$ref: './schemas/forms/staff_apply/staff_apply.yml#/StaffApplicationsIsOpen'
/api/login/requestNewUserLogin/{uuid}:
$ref: './schemas/login/login.yml#/RequestNewUserLogin'
/api/login/userLogin/{code}:
@@ -24,6 +24,28 @@ StaffApply:
application/json:
schema:
$ref: '../../generic/errors.yml#/components/schemas/ApiError'
StaffApplicationsIsOpen:
get:
tags:
- applications
summary: Get if staff applications are open
description: Get if staff applications are open
operationId: getStaffApplicationsIsOpen
responses:
'200':
description: If staff applications are open
content:
application/json:
schema:
type: boolean
'403':
description: If staff applications are not open
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '../../generic/errors.yml#/components/schemas/ApiError'
components:
schemas:
StaffApplication: