Skip to content

Node.js based forum software built for the modern web

docs: update openapi spec with new (missing) properties

Julian Lamb32b7fccffd6
diff --git a/public/openapi/read/category/category_id.yaml b/public/openapi/read/category/category_id.yaml
index 28502d30f7..273e4c41e6 100644
--- a/public/openapi/read/category/category_id.yaml
+++ b/public/openapi/read/category/category_id.yaml
@@ -61,6 +61,9 @@ get:
type: boolean
isIgnored:
type: boolean
+ hasFollowers:
+ type: boolean
+ nullable: true
title:
type: string
selectCategoryLabel:
diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml
index 2b29fbc247..8bf706add3 100644
--- a/public/openapi/read/world.yaml
+++ b/public/openapi/read/world.yaml
@@ -30,32 +30,6 @@ get:
type: array
items:
$ref: ../components/schemas/TopicObject.yaml#/TopicObject
- # tids:
- # type: array
- # items:
- # type: number
- # canPost:
- # type: boolean
- # showSelect:
- # type: boolean
- # showTopicTools:
- # type: boolean
- # allCategoriesUrl:
- # type: string
- # selectedCategory:
- # type: object
- # properties:
- # icon:
- # type: string
- # name:
- # type: string
- # bgColor:
- # type: string
- # nullable: true
- # selectedCids:
- # type: array
- # items:
- # type: number
selectedTag:
type: object
properties:
@@ -74,6 +48,9 @@ get:
type: boolean
isIgnored:
type: boolean
+ hasFollowers:
+ type: boolean
+ nullable: true
feeds:disableRSS:
type: number
rssFeedUrl:
@@ -108,58 +85,10 @@ get:
type: boolean
isAdminOrMod:
type: boolean
- # filters:
- # type: array
- # items:
- # type: object
- # properties:
- # name:
- # type: string
- # url:
- # type: string
- # selected:
- # type: boolean
- # filter:
- # type: string
- # icon:
- # type: string
- # selectedFilter:
- # type: object
- # properties:
- # name:
- # type: string
- # url:
- # type: string
- # selected:
- # type: boolean
- # filter:
- # type: string
- # icon:
- # type: string
- # terms:
- # type: array
- # items:
- # type: object
- # properties:
- # name:
- # type: string
- # url:
- # type: string
- # selected:
- # type: boolean
- # term:
- # type: string
- # selectedTerm:
- # type: object
- # properties:
- # name:
- # type: string
- # url:
- # type: string
- # selected:
- # type: boolean
- # term:
- # type: string
+ categories:
+ type: array
+ items:
+ $ref: ../components/schemas/CategoryObject.yaml#/CategoryObject
- $ref: ../components/schemas/Pagination.yaml#/Pagination
- $ref: ../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
- $ref: ../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file