mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: move topic route schema up two levels as slug and index are optional
This commit is contained in:
@@ -168,7 +168,7 @@ paths:
|
|||||||
"/api/categories/{cid}/moderators":
|
"/api/categories/{cid}/moderators":
|
||||||
$ref: 'read/categories/cid/moderators.yaml'
|
$ref: 'read/categories/cid/moderators.yaml'
|
||||||
"/api/topic/{topic_id}/{slug}/{post_index}":
|
"/api/topic/{topic_id}/{slug}/{post_index}":
|
||||||
$ref: 'read/topic/topic_id/slug/post_index.yaml'
|
$ref: 'read/topic/topic_id.yaml'
|
||||||
/api/recent:
|
/api/recent:
|
||||||
$ref: 'read/recent.yaml'
|
$ref: 'read/recent.yaml'
|
||||||
"/api/recent/posts/{term}":
|
"/api/recent/posts/{term}":
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ get:
|
|||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ../../../../components/schemas/TagObject.yaml#/TagObject
|
$ref: ../../components/schemas/TagObject.yaml#/TagObject
|
||||||
posts:
|
posts:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@@ -277,7 +277,7 @@ get:
|
|||||||
type: number
|
type: number
|
||||||
description: The flag identifier, if this particular post has been flagged before
|
description: The flag identifier, if this particular post has been flagged before
|
||||||
category:
|
category:
|
||||||
$ref: ../../../../components/schemas/CategoryObject.yaml#/CategoryObject
|
$ref: ../../components/schemas/CategoryObject.yaml#/CategoryObject
|
||||||
tagWhitelist:
|
tagWhitelist:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@@ -325,7 +325,7 @@ get:
|
|||||||
related:
|
related:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ../../../../components/schemas/TopicObject.yaml#/TopicObject
|
$ref: ../../components/schemas/TopicObject.yaml#/TopicObject
|
||||||
unreplied:
|
unreplied:
|
||||||
type: boolean
|
type: boolean
|
||||||
icons:
|
icons:
|
||||||
@@ -402,7 +402,7 @@ get:
|
|||||||
postIndex:
|
postIndex:
|
||||||
type: number
|
type: number
|
||||||
loggedInUser:
|
loggedInUser:
|
||||||
$ref: ../../../../components/schemas/UserObject.yaml#/UserObject
|
$ref: ../../components/schemas/UserObject.yaml#/UserObject
|
||||||
- $ref: ../../../../components/schemas/Pagination.yaml#/Pagination
|
- $ref: ../../components/schemas/Pagination.yaml#/Pagination
|
||||||
- $ref: ../../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
- $ref: ../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
||||||
- $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
|
- $ref: ../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
Reference in New Issue
Block a user