fix: tests due to 0633ad327

v1.18.x
Julian Lam 5 years ago
parent bad23159d2
commit 98dffa3af8

@ -900,175 +900,6 @@ paths:
description: Six-character hexadecimal string (with `#` prepended)
example: "#ff0000"
- $ref: components/schemas/CommonProps.yaml#/CommonProps
/api/admin/manage/post-queue:
get:
tags:
- admin
summary: Get post queue settings
responses:
"200":
description: "A JSON object containing post queue settings"
content:
application/json:
schema:
allOf:
- type: object
properties:
posts:
type: array
items:
type: object
properties:
id:
type: string
description: Unique ID given to this queued post
uid:
type: number
description: A user identifier
data:
type: object
description: Queued post data
properties:
title:
type: string
content:
type: string
thumb:
type: string
cid:
type: number
tags:
type: array
uid:
type: number
req:
type: object
properties:
uid:
type: number
ip:
type: string
host:
type: string
protocol:
type: string
secure:
type: boolean
url:
type: string
path:
type: string
headers:
type: object
properties:
host:
type: string
user-agent:
type: string
accept:
type: string
accept-language:
type: string
accept-encoding:
type: string
referer:
type: string
dnt:
type: string
connection:
type: string
cookie:
type: string
pragma:
type: string
cache-control:
type: string
timestamp:
type: number
fromQueue:
type: boolean
timestampISO:
type: string
rawContent:
type: string
type:
type: string
user:
type: object
properties:
username:
type: string
description: A friendly name for a given user account
userslug:
type: string
description: An URL-safe variant of the username (i.e. lower-cased, spaces
removed, etc.)
picture:
type: string
uid:
type: number
description: A user identifier
icon:text:
type: string
description: A single-letter representation of a username. This is used in the
auto-generated icon given to users without
an avatar
icon:bgColor:
type: string
description: A six-character hexadecimal colour code assigned to the user. This
value is used in conjunction with
`icon:text` for the user's auto-generated
icon
example: "#f44336"
topic:
type: object
properties:
title:
type: number
cid:
type: number
category:
$ref: components/schemas/CategoryObject.yaml#/CategoryObject
title:
type: string
- $ref: components/schemas/Pagination.yaml#/Pagination
- $ref: components/schemas/CommonProps.yaml#/CommonProps
/api/admin/manage/ip-blacklist:
get:
tags:
- admin
summary: Get IP blacklist settings
responses:
"200":
description: "A JSON object containing IP blacklist settings"
content:
application/json:
schema:
allOf:
- type: object
properties:
title:
type: string
rules:
type: string
description: A plain text string containing blocked IPs or IP ranges. Separate entries are separated by a newline (`\n`)
nullable: true
analytics:
type: object
properties:
daily:
type: array
description: The values here are shown in ascending order from 6 days ago, to the current day
items:
type: number
description: The number of requests blocked per day
hourly:
type: array
description: The values here are shown in ascending order from 23 hours ago, to the current hour
items:
type: number
description: The number of requests blocked per hour
- $ref: components/schemas/CommonProps.yaml#/CommonProps
/api/admin/manage/users:
get:
tags:

Loading…
Cancel
Save