feat(api): closes #9123 category and topic routes migrated to Write API
parent
77a5adb616
commit
edb8da1ef9
@ -1,73 +1,85 @@
|
|||||||
CategoryObject:
|
CategoryObject:
|
||||||
type: object
|
allOf:
|
||||||
properties:
|
- type: object
|
||||||
cid:
|
properties:
|
||||||
type: number
|
cid:
|
||||||
description: A category identifier assigned upon category creation (this value cannot be changed)
|
type: number
|
||||||
name:
|
description: A category identifier assigned upon category creation (this value cannot be changed)
|
||||||
type: string
|
name:
|
||||||
description: The category's name/title
|
type: string
|
||||||
description:
|
description: The category's name/title
|
||||||
type: string
|
description:
|
||||||
description: A variable-length description of the category (usually displayed underneath the category name)
|
type: string
|
||||||
descriptionParsed:
|
description: A variable-length description of the category (usually displayed underneath the category name)
|
||||||
type: string
|
descriptionParsed:
|
||||||
description: A variable-length description of the category (usually displayed underneath the category name). Unlike `description`, this value here will have been run through any parsers installed on the forum (e.g. Markdown)
|
type: string
|
||||||
icon:
|
description: A variable-length description of the category (usually displayed underneath the category name). Unlike `description`, this value here will have been run through any parsers installed on the forum (e.g. Markdown)
|
||||||
type: string
|
icon:
|
||||||
description: A FontAwesome icon string
|
type: string
|
||||||
example: fa-comments-o
|
description: A FontAwesome icon string
|
||||||
bgColor:
|
example: fa-comments-o
|
||||||
type: string
|
bgColor:
|
||||||
description: Theme-related, a six-character hexadecimal string representing the background colour of the category
|
type: string
|
||||||
color:
|
description: Theme-related, a six-character hexadecimal string representing the background colour of the category
|
||||||
type: string
|
color:
|
||||||
description: Theme-related, a six-character hexadecimal string representing the foreground/text colour of the category
|
type: string
|
||||||
slug:
|
description: Theme-related, a six-character hexadecimal string representing the foreground/text colour of the category
|
||||||
type: string
|
slug:
|
||||||
description: An URL-safe variant of the category title. This value is automatically generated.
|
type: string
|
||||||
readOnly: true
|
description: An URL-safe variant of the category title. This value is automatically generated.
|
||||||
parentCid:
|
readOnly: true
|
||||||
type: number
|
parentCid:
|
||||||
description: The category identifier for the category that is the immediate ancestor of the current category
|
type: number
|
||||||
topic_count:
|
description: The category identifier for the category that is the immediate ancestor of the current category
|
||||||
type: number
|
topic_count:
|
||||||
description: The number of topics in the category
|
type: number
|
||||||
post_count:
|
description: The number of topics in the category
|
||||||
type: number
|
post_count:
|
||||||
description: The number of posts in the category
|
type: number
|
||||||
disabled:
|
description: The number of posts in the category
|
||||||
type: number
|
disabled:
|
||||||
description: Whether or not this category is disabled.
|
type: number
|
||||||
order:
|
description: Whether or not this category is disabled.
|
||||||
type: number
|
order:
|
||||||
description: A number representing the category's place in the hierarchy
|
type: number
|
||||||
link:
|
description: A number representing the category's place in the hierarchy
|
||||||
type: string
|
link:
|
||||||
description: If set, attempting to access the forum will go to this external link instead (theme-specific)
|
type: string
|
||||||
numRecentReplies:
|
description: If set, attempting to access the forum will go to this external link instead (theme-specific)
|
||||||
type: number
|
numRecentReplies:
|
||||||
description: The number of posts to render in the API response (this is mostly used at the theme level)
|
type: number
|
||||||
class:
|
description: The number of posts to render in the API response (this is mostly used at the theme level)
|
||||||
type: string
|
class:
|
||||||
description: Values that are appended to the `class` attribute of the category's parent/root element
|
type: string
|
||||||
imageClass:
|
description: Values that are appended to the `class` attribute of the category's parent/root element
|
||||||
type: string
|
imageClass:
|
||||||
enum: [auto, cover, contain]
|
type: string
|
||||||
description: The `background-position` of the category background image, if one is set
|
enum: [auto, cover, contain]
|
||||||
isSection:
|
description: The `background-position` of the category background image, if one is set
|
||||||
type: number
|
isSection:
|
||||||
minTags:
|
type: number
|
||||||
type: number
|
minTags:
|
||||||
description: Minimum tags per topic in this category
|
type: number
|
||||||
maxTags:
|
description: Minimum tags per topic in this category
|
||||||
type: number
|
maxTags:
|
||||||
description: Maximum tags per topic in this category
|
type: number
|
||||||
postQueue:
|
description: Maximum tags per topic in this category
|
||||||
type: number
|
postQueue:
|
||||||
totalPostCount:
|
type: number
|
||||||
type: number
|
totalPostCount:
|
||||||
description: The number of posts in the category
|
type: number
|
||||||
totalTopicCount:
|
description: The number of posts in the category
|
||||||
type: number
|
totalTopicCount:
|
||||||
description: The number of topics in the category
|
type: number
|
||||||
|
description: The number of topics in the category
|
||||||
|
- type: object
|
||||||
|
description: Optional properties that may or may not be present (except for `cid`, which is always present, and is only here as a hack to pass validation)
|
||||||
|
properties:
|
||||||
|
cid:
|
||||||
|
type: number
|
||||||
|
description: A category identifier
|
||||||
|
backgroundImage:
|
||||||
|
type: string
|
||||||
|
description: Relative URL to the category's background image
|
||||||
|
required:
|
||||||
|
- cid
|
Loading…
Reference in New Issue