Refactor API structure and update schema references
Moved API files from `sub_api` to `schemas` for better organization. Updated schema references to use `ApiError` instead of `Error`. Adjusted build configuration to include new schema folder in the API generation process.
This commit is contained in:
@@ -13,10 +13,10 @@ tags:
|
||||
description: Retrieves information about the staff team
|
||||
paths:
|
||||
/team/{team}:
|
||||
$ref: './sub_api/team/team.yml#/getTeam'
|
||||
$ref: './schemas/team/team.yml#/getTeam'
|
||||
/history/{userType}/search/{type}:
|
||||
$ref: './sub_api/bans/bans.yml#/getUserNames'
|
||||
$ref: './schemas/bans/bans.yml#/getUserNames'
|
||||
/history/{userType}/{type}/{user}:
|
||||
$ref: './sub_api/bans/bans.yml#/getHistoryForUsers'
|
||||
$ref: './schemas/bans/bans.yml#/getHistoryForUsers'
|
||||
/history/{userType}/{type}/{uuid}:
|
||||
$ref: './sub_api/bans/bans.yml#/getHistoryForUuid'
|
||||
$ref: './schemas/bans/bans.yml#/getHistoryForUuid'
|
||||
|
||||
+3
-3
@@ -23,7 +23,7 @@ getUserNames:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../generic/errors.yml#/components/schemas/Error"
|
||||
$ref: "../generic/errors.yml#/components/schemas/ApiError"
|
||||
getHistoryForUsers:
|
||||
post:
|
||||
tags:
|
||||
@@ -49,7 +49,7 @@ getHistoryForUsers:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../generic/errors.yml#/components/schemas/Error"
|
||||
$ref: "../generic/errors.yml#/components/schemas/ApiError"
|
||||
getHistoryForUuid:
|
||||
post:
|
||||
tags:
|
||||
@@ -75,7 +75,7 @@ getHistoryForUuid:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../generic/errors.yml#/components/schemas/Error"
|
||||
$ref: "../generic/errors.yml#/components/schemas/ApiError"
|
||||
components:
|
||||
parameters:
|
||||
HistoryType:
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
components:
|
||||
schemas:
|
||||
Error:
|
||||
ApiError:
|
||||
type: object
|
||||
properties:
|
||||
reason:
|
||||
+1
-1
@@ -24,7 +24,7 @@ getTeam:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../generic/errors.yml#/components/schemas/Error"
|
||||
$ref: "../generic/errors.yml#/components/schemas/ApiError"
|
||||
components:
|
||||
schemas:
|
||||
TeamMembers:
|
||||
Reference in New Issue
Block a user