mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: move category route schema up two levels as slug and index are optional
This commit is contained in:
@@ -218,7 +218,7 @@ paths:
|
|||||||
/api/top:
|
/api/top:
|
||||||
$ref: 'read/top.yaml'
|
$ref: 'read/top.yaml'
|
||||||
"/api/category/{category_id}/{slug}/{topic_index}":
|
"/api/category/{category_id}/{slug}/{topic_index}":
|
||||||
$ref: 'read/category/category_id/slug/topic_index.yaml'
|
$ref: 'read/category/category_id.yaml'
|
||||||
/api/self:
|
/api/self:
|
||||||
$ref: 'read/self.yaml'
|
$ref: 'read/self.yaml'
|
||||||
/api/me:
|
/api/me:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ get:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: ../../../../components/schemas/CategoryObject.yaml#/CategoryObject
|
- $ref: ../../components/schemas/CategoryObject.yaml#/CategoryObject
|
||||||
- type: object
|
- type: object
|
||||||
properties:
|
properties:
|
||||||
tagWhitelist:
|
tagWhitelist:
|
||||||
@@ -43,11 +43,11 @@ get:
|
|||||||
children:
|
children:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ../../../../components/schemas/CategoryObject.yaml#/CategoryObject
|
$ref: ../../components/schemas/CategoryObject.yaml#/CategoryObject
|
||||||
topics:
|
topics:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: ../../../../components/schemas/TopicObject.yaml#/TopicObject
|
$ref: ../../components/schemas/TopicObject.yaml#/TopicObject
|
||||||
nextStart:
|
nextStart:
|
||||||
type: number
|
type: number
|
||||||
isWatched:
|
isWatched:
|
||||||
@@ -92,6 +92,6 @@ get:
|
|||||||
type: number
|
type: number
|
||||||
reputation:disabled:
|
reputation:disabled:
|
||||||
type: number
|
type: number
|
||||||
- $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