Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ components:
ip_addr:
$ref: "./components/parameters/ipAddr.yaml"
schemas:
AccessDeniedResponse:
$ref: "./components/schemas/accessDenied.yaml"
NotFoundResponse:
$ref: "./components/schemas/notFound.yaml"
WarningRecordType:
$ref: "./components/schemas/warningRecord.yaml"
ModActionActions:
$ref: "./components/schemas/modActionActions.yaml"
PostEventActions:
Expand Down Expand Up @@ -142,6 +148,8 @@ components:
$ref: "./components/schemas/postVersion.yaml"
RelatedTag:
$ref: "./components/schemas/relatedTag.yaml"
StaffNote:
$ref: ./components/schemas/staffNote.yaml
Tag:
$ref: "./components/schemas/tag.yaml"
TagAlias:
Expand Down
4 changes: 1 addition & 3 deletions api/components/parameters/idOrName.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ name: idOrName
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
12 changes: 1 addition & 11 deletions api/components/requestBodies/warning.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
content:
application/json:
schema:
type: object
required:
- record_type
properties:
record_type:
type: string
enum:
- unmark
- ban
- record
- warning
$ref: "../schemas/warningRecord.yaml"
12 changes: 1 addition & 11 deletions api/components/responses/accessDenied.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,4 @@ description: Access Denied
content:
application/json:
schema:
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- "Access Denied"
$ref: "../schemas/accessDenied.yaml"
12 changes: 1 addition & 11 deletions api/components/responses/notFound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,4 @@ description: Not Found
content:
application/json:
schema:
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- "not found"
$ref: "../schemas/notFound.yaml"
11 changes: 11 additions & 0 deletions api/components/schemas/accessDenied.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- "Access Denied"
11 changes: 11 additions & 0 deletions api/components/schemas/notFound.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- "not found"
11 changes: 11 additions & 0 deletions api/components/schemas/warningRecord.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: object
required:
- record_type
properties:
record_type:
type: string
enum:
- unmark
- ban
- record
- warning
106 changes: 76 additions & 30 deletions openapi.dereferenced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ components:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
limit:
name: limit
Expand All @@ -62,6 +60,42 @@ components:
schema:
type: string
schemas:
AccessDeniedResponse:
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- Access Denied
NotFoundResponse:
type: object
required:
- success
- reason
properties:
success:
type: boolean
reason:
type: string
enum:
- not found
WarningRecordType:
type: object
required:
- record_type
properties:
record_type:
type: string
enum:
- unmark
- ban
- record
- warning
ModActionActions:
type: string
enum:
Expand Down Expand Up @@ -3082,6 +3116,36 @@ components:
- 6
- 7
- 8
StaffNote:
type: object
required:
- id
- created_at
- updated_at
- user_id
- creator_id
- body
- is_deleted
- updater_id
properties:
id:
type: integer
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
user_id:
type: integer
creator_id:
type: integer
body:
type: string
is_deleted:
type: boolean
updater_id:
type: integer
Tag:
type: object
required:
Expand Down Expand Up @@ -4500,9 +4564,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'200':
Expand Down Expand Up @@ -4635,9 +4697,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
requestBody:
content:
Expand Down Expand Up @@ -4733,9 +4793,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'204':
Expand Down Expand Up @@ -4787,9 +4845,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
- name: version_id
in: query
Expand Down Expand Up @@ -5392,9 +5448,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'200':
Expand Down Expand Up @@ -5463,9 +5517,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
requestBody:
content:
Expand Down Expand Up @@ -5591,9 +5643,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'204':
Expand Down Expand Up @@ -5644,9 +5694,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'204':
Expand Down Expand Up @@ -5697,9 +5745,7 @@ paths:
in: path
required: true
schema:
oneOf:
- type: integer
- type: string
type: string
description: An ID that can be either an integer or a name.
responses:
'204':
Expand Down
Loading