Node.js based forum software built for the modern web
style(openapi): break write API routes into individual files
psychobunnydbb4cfe9d6a5
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex f31b521b67..02dad71349 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -56,252 +56,252 @@ tags:description: Convenience and utility routes for accessing other part of the APIpaths:/api/:- $ref: 'api/index.yaml'+ $ref: 'read/index.yaml'/api/admin/dashboard:- $ref: 'api/admin/dashboard.yaml'+ $ref: 'read/admin/dashboard.yaml'/api/admin/settings/languages:- $ref: 'api/admin/settings/languages.yaml'+ $ref: 'read/admin/settings/languages.yaml'/api/admin/settings/navigation:- $ref: 'api/admin/settings/navigation.yaml'+ $ref: 'read/admin/settings/navigation.yaml'/api/admin/settings/homepage:- $ref: 'api/admin/settings/homepage.yaml'+ $ref: 'read/admin/settings/homepage.yaml'/api/admin/settings/social:- $ref: 'api/admin/settings/social.yaml'+ $ref: 'read/admin/settings/social.yaml'/api/admin/manage/categories:- $ref: 'api/admin/manage/categories.yaml'+ $ref: 'read/admin/manage/categories.yaml'"/api/admin/manage/categories/{category_id}":- $ref: 'api/admin/manage/categories/category_id.yaml'+ $ref: 'read/admin/manage/categories/category_id.yaml'"/api/admin/manage/categories/{category_id}/analytics":- $ref: 'api/admin/manage/categories/category_id/analytics.yaml'+ $ref: 'read/admin/manage/categories/category_id/analytics.yaml'"/api/admin/manage/privileges/{cid}":- $ref: 'api/admin/manage/privileges/cid.yaml'+ $ref: 'read/admin/manage/privileges/cid.yaml'/api/admin/manage/tags:- $ref: 'api/admin/manage/tags.yaml'+ $ref: 'read/admin/manage/tags.yaml'/api/admin/manage/users:- $ref: 'api/admin/manage/users.yaml'+ $ref: 'read/admin/manage/users.yaml'/api/admin/manage/users/search:- $ref: 'api/admin/manage/users/search.yaml'+ $ref: 'read/admin/manage/users/search.yaml'/api/admin/manage/users/latest:- $ref: 'api/admin/manage/users/latest.yaml'+ $ref: 'read/admin/manage/users/latest.yaml'/api/admin/manage/users/not-validated:- $ref: 'api/admin/manage/users/not-validated.yaml'+ $ref: 'read/admin/manage/users/not-validated.yaml'/api/admin/manage/users/no-posts:- $ref: 'api/admin/manage/users/no-posts.yaml'+ $ref: 'read/admin/manage/users/no-posts.yaml'/api/admin/manage/users/top-posters:- $ref: 'api/admin/manage/users/top-posters.yaml'+ $ref: 'read/admin/manage/users/top-posters.yaml'/api/admin/manage/users/most-reputation:- $ref: 'api/admin/manage/users/most-reputation.yaml'+ $ref: 'read/admin/manage/users/most-reputation.yaml'/api/admin/manage/users/inactive:- $ref: 'api/admin/manage/users/inactive.yaml'+ $ref: 'read/admin/manage/users/inactive.yaml'/api/admin/manage/users/flagged:- $ref: 'api/admin/manage/users/flagged.yaml'+ $ref: 'read/admin/manage/users/flagged.yaml'/api/admin/manage/users/banned:- $ref: 'api/admin/manage/users/banned.yaml'+ $ref: 'read/admin/manage/users/banned.yaml'/api/admin/manage/registration:- $ref: 'api/admin/manage/registration.yaml'+ $ref: 'read/admin/manage/registration.yaml'/api/admin/manage/admins-mods:- $ref: 'api/admin/manage/admins-mods.yaml'+ $ref: 'read/admin/manage/admins-mods.yaml'/api/admin/manage/groups:- $ref: 'api/admin/manage/groups.yaml'+ $ref: 'read/admin/manage/groups.yaml'"/api/admin/manage/groups/{name}":- $ref: 'api/admin/manage/groups/name.yaml'+ $ref: 'read/admin/manage/groups/name.yaml'/api/admin/manage/uploads:- $ref: 'api/admin/manage/uploads.yaml'+ $ref: 'read/admin/manage/uploads.yaml'/api/admin/manage/digest:- $ref: 'api/admin/manage/digest.yaml'+ $ref: 'read/admin/manage/digest.yaml'"/api/admin/settings/{term}":- $ref: 'api/admin/settings/term.yaml'+ $ref: 'read/admin/settings/term.yaml'"/api/admin/appearance/{term}":- $ref: 'api/admin/appearance/term.yaml'+ $ref: 'read/admin/appearance/term.yaml'/api/admin/extend/plugins:- $ref: 'api/admin/extend/plugins.yaml'+ $ref: 'read/admin/extend/plugins.yaml'/api/admin/extend/widgets:- $ref: 'api/admin/extend/widgets.yaml'+ $ref: 'read/admin/extend/widgets.yaml'/api/admin/extend/rewards:- $ref: 'api/admin/extend/rewards.yaml'+ $ref: 'read/admin/extend/rewards.yaml'/api/admin/advanced/database:- $ref: 'api/admin/advanced/database.yaml'+ $ref: 'read/admin/advanced/database.yaml'/api/admin/advanced/events:- $ref: 'api/admin/advanced/events.yaml'+ $ref: 'read/admin/advanced/events.yaml'/api/admin/advanced/hooks:- $ref: 'api/admin/advanced/hooks.yaml'+ $ref: 'read/admin/advanced/hooks.yaml'/api/admin/advanced/logs:- $ref: 'api/admin/advanced/logs.yaml'+ $ref: 'read/admin/advanced/logs.yaml'/api/admin/advanced/errors:- $ref: 'api/admin/advanced/errors.yaml'+ $ref: 'read/admin/advanced/errors.yaml'/api/admin/advanced/errors/export:- $ref: 'api/admin/advanced/errors/export.yaml'+ $ref: 'read/admin/advanced/errors/export.yaml'/api/admin/advanced/cache:- $ref: 'api/admin/advanced/cache.yaml'+ $ref: 'read/admin/advanced/cache.yaml'/api/admin/development/logger:- $ref: 'api/admin/development/logger.yaml'+ $ref: 'read/admin/development/logger.yaml'/api/admin/development/info:- $ref: 'api/admin/development/info.yaml'+ $ref: 'read/admin/development/info.yaml'/api/admin/users/csv:- $ref: 'api/admin/users/csv.yaml'+ $ref: 'read/admin/users/csv.yaml'/api/admin/groups/{groupname}/csv:- $ref: 'api/admin/groups/groupname/csv.yaml'+ $ref: 'read/admin/groups/groupname/csv.yaml'/api/admin/analytics:- $ref: 'api/admin/analytics.yaml'+ $ref: 'read/admin/analytics.yaml'/api/admin/category/uploadpicture:- $ref: 'api/admin/category/uploadpicture.yaml'+ $ref: 'read/admin/category/uploadpicture.yaml'/api/admin/uploadfavicon:- $ref: 'api/admin/uploadfavicon.yaml'+ $ref: 'read/admin/uploadfavicon.yaml'/api/admin/uploadTouchIcon:- $ref: 'api/admin/uploadTouchIcon.yaml'+ $ref: 'read/admin/uploadTouchIcon.yaml'/api/admin/uploadMaskableIcon:- $ref: 'api/admin/uploadMaskableIcon.yaml'+ $ref: 'read/admin/uploadMaskableIcon.yaml'/api/admin/uploadlogo:- $ref: 'api/admin/uploadlogo.yaml'+ $ref: 'read/admin/uploadlogo.yaml'/api/admin/uploadOgImage:- $ref: 'api/admin/uploadOgImage.yaml'+ $ref: 'read/admin/uploadOgImage.yaml'/api/admin/upload/file:- $ref: 'api/admin/upload/file.yaml'+ $ref: 'read/admin/upload/file.yaml'/api/admin/uploadDefaultAvatar:- $ref: 'api/admin/uploadDefaultAvatar.yaml'+ $ref: 'read/admin/uploadDefaultAvatar.yaml'/api/config:- $ref: 'api/config.yaml'+ $ref: 'read/config.yaml'/api/users:- $ref: 'api/users.yaml'+ $ref: 'read/users.yaml'"/api/user/uid/{uid}":- $ref: 'api/user/uid/uid.yaml'+ $ref: 'read/user/uid/uid.yaml'"/api/user/username/{username}":- $ref: 'api/user/username/username.yaml'+ $ref: 'read/user/username/username.yaml'"/api/user/email/{email}":- $ref: 'api/user/email/email.yaml'+ $ref: 'read/user/email/email.yaml'"/api/user/uid/{userslug}/export/posts":- $ref: 'api/user/uid/userslug/export/posts.yaml'+ $ref: 'read/user/uid/userslug/export/posts.yaml'"/api/user/uid/{userslug}/export/uploads":- $ref: 'api/user/uid/userslug/export/uploads.yaml'+ $ref: 'read/user/uid/userslug/export/uploads.yaml'"/api/user/uid/{userslug}/export/profile":- $ref: 'api/user/uid/userslug/export/profile.yaml'+ $ref: 'read/user/uid/userslug/export/profile.yaml'"/api/post/pid/{id}":- $ref: 'api/post/pid/id.yaml'+ $ref: 'read/post/pid/id.yaml'"/api/topic/tid/{id}":- $ref: 'api/topic/tid/id.yaml'+ $ref: 'read/topic/tid/id.yaml'"/api/category/cid/{id}":- $ref: 'api/category/cid/id.yaml'+ $ref: 'read/category/cid/id.yaml'/api/categories:- $ref: 'api/categories.yaml'+ $ref: 'read/categories.yaml'"/api/categories/{cid}/moderators":- $ref: 'api/categories/cid/moderators.yaml'+ $ref: 'read/categories/cid/moderators.yaml'"/api/topic/{topic_id}/{slug}/{post_index}":- $ref: 'api/topic/topic_id/slug/post_index.yaml'+ $ref: 'read/topic/topic_id/slug/post_index.yaml'/api/recent:- $ref: 'api/recent.yaml'+ $ref: 'read/recent.yaml'"/api/recent/posts/{term}":- $ref: 'api/recent/posts/term.yaml'+ $ref: 'read/recent/posts/term.yaml'/api/unread:- $ref: 'api/unread.yaml'+ $ref: 'read/unread.yaml'/api/unread/total:- $ref: 'api/unread/total.yaml'+ $ref: 'read/unread/total.yaml'"/api/topic/teaser/{topic_id}":- $ref: 'api/topic/teaser/topic_id.yaml'+ $ref: 'read/topic/teaser/topic_id.yaml'"/api/topic/pagination/{topic_id}":- $ref: 'api/topic/pagination/topic_id.yaml'+ $ref: 'read/topic/pagination/topic_id.yaml'/api/post/upload:- $ref: 'api/post/upload.yaml'+ $ref: 'read/post/upload.yaml'/api/topic/thumb/upload:- $ref: 'api/topic/thumb/upload.yaml'+ $ref: 'read/topic/thumb/upload.yaml'/api/login:- $ref: 'api/login.yaml'+ $ref: 'read/login.yaml'/api/register:- $ref: 'api/register.yaml'+ $ref: 'read/register.yaml'/api/search:- $ref: 'api/search.yaml'+ $ref: 'read/search.yaml'"/api/reset":- $ref: 'api/reset.yaml'+ $ref: 'read/reset.yaml'"/api/reset/{code}":- $ref: 'api/reset/code.yaml'+ $ref: 'read/reset/code.yaml'"/api/email/unsubscribe/{token}":- $ref: 'api/email/unsubscribe/token.yaml'+ $ref: 'read/email/unsubscribe/token.yaml'"/api/post/{pid}":- $ref: 'api/post/pid.yaml'+ $ref: 'read/post/pid.yaml'/api/flags:- $ref: 'api/flags.yaml'+ $ref: 'read/flags.yaml'"/api/flags/{flagId}":- $ref: 'api/flags/flagId.yaml'+ $ref: 'read/flags/flagId.yaml'/api/post-queue:- $ref: 'api/post-queue.yaml'+ $ref: 'read/post-queue.yaml'/api/ip-blacklist:- $ref: 'api/ip-blacklist.yaml'+ $ref: 'read/ip-blacklist.yaml'/api/registration-queue:- $ref: 'api/registration-queue.yaml'+ $ref: 'read/registration-queue.yaml'/api/tags:- $ref: 'api/tags.yaml'+ $ref: 'read/tags.yaml'"/api/tags/{tag}":- $ref: 'api/tags/tag.yaml'+ $ref: 'read/tags/tag.yaml'/api/popular:- $ref: 'api/popular.yaml'+ $ref: 'read/popular.yaml'/api/top:- $ref: 'api/top.yaml'+ $ref: 'read/top.yaml'"/api/category/{category_id}/{slug}/{topic_index}":- $ref: 'api/category/category_id/slug/topic_index.yaml'+ $ref: 'read/category/category_id/slug/topic_index.yaml'/api/self:- $ref: 'api/self.yaml'+ $ref: 'read/self.yaml'/api/me:- $ref: 'api/me.yaml'+ $ref: 'read/me.yaml'/api/me/*:- $ref: 'api/me.yaml'+ $ref: 'read/me.yaml'"/api/uid/{uid}/*":- $ref: 'api/uid/uid.yaml'+ $ref: 'read/uid/uid.yaml'"/api/user/{userslug}":- $ref: 'api/user/userslug.yaml'+ $ref: 'read/user/userslug.yaml'"/api/user/{userslug}/following":- $ref: 'api/user/userslug/following.yaml'+ $ref: 'read/user/userslug/following.yaml'"/api/user/{userslug}/followers":- $ref: 'api/user/userslug/followers.yaml'+ $ref: 'read/user/userslug/followers.yaml'"/api/user/{userslug}/categories":- $ref: 'api/user/userslug/categories.yaml'+ $ref: 'read/user/userslug/categories.yaml'"/api/user/{userslug}/posts":- $ref: 'api/user/userslug/posts.yaml'+ $ref: 'read/user/userslug/posts.yaml'"/api/user/{userslug}/topics":- $ref: 'api/user/userslug/topics.yaml'+ $ref: 'read/user/userslug/topics.yaml'"/api/user/{userslug}/best":- $ref: 'api/user/userslug/best.yaml'+ $ref: 'read/user/userslug/best.yaml'"/api/user/{userslug}/groups":- $ref: 'api/user/userslug/groups.yaml'+ $ref: 'read/user/userslug/groups.yaml'"/api/user/{userslug}/bookmarks":- $ref: 'api/user/userslug/bookmarks.yaml'+ $ref: 'read/user/userslug/bookmarks.yaml'"/api/user/{userslug}/watched":- $ref: 'api/user/userslug/watched.yaml'+ $ref: 'read/user/userslug/watched.yaml'"/api/user/{userslug}/ignored":- $ref: 'api/user/userslug/ignored.yaml'+ $ref: 'read/user/userslug/ignored.yaml'"/api/user/{userslug}/upvoted":- $ref: 'api/user/userslug/upvoted.yaml'+ $ref: 'read/user/userslug/upvoted.yaml'"/api/user/{userslug}/downvoted":- $ref: 'api/user/userslug/downvoted.yaml'+ $ref: 'read/user/userslug/downvoted.yaml'"/api/user/{userslug}/edit":- $ref: 'api/user/userslug/edit.yaml'+ $ref: 'read/user/userslug/edit.yaml'"/api/user/{userslug}/edit/username":- $ref: 'api/user/userslug/edit/username.yaml'+ $ref: 'read/user/userslug/edit/username.yaml'"/api/user/{userslug}/edit/email":- $ref: 'api/user/userslug/edit/email.yaml'+ $ref: 'read/user/userslug/edit/email.yaml'"/api/user/{userslug}/edit/password":- $ref: 'api/user/userslug/edit/password.yaml'+ $ref: 'read/user/userslug/edit/password.yaml'"/api/user/{userslug}/info":- $ref: 'api/user/userslug/info.yaml'+ $ref: 'read/user/userslug/info.yaml'"/api/user/{userslug}/settings":- $ref: 'api/user/userslug/settings.yaml'+ $ref: 'read/user/userslug/settings.yaml'"/api/user/{userslug}/uploads":- $ref: 'api/user/userslug/uploads.yaml'+ $ref: 'read/user/userslug/uploads.yaml'"/api/user/{userslug}/consent":- $ref: 'api/user/userslug/consent.yaml'+ $ref: 'read/user/userslug/consent.yaml'"/api/user/{userslug}/blocks":- $ref: 'api/user/userslug/blocks.yaml'+ $ref: 'read/user/userslug/blocks.yaml'"/api/user/{userslug}/sessions":- $ref: 'api/user/userslug/sessions.yaml'+ $ref: 'read/user/userslug/sessions.yaml'"/api/user/{userslug}/session/{uuid}":- $ref: 'api/user/userslug/session/uuid.yaml'+ $ref: 'read/user/userslug/session/uuid.yaml'/api/notifications:- $ref: 'api/notifications.yaml'+ $ref: 'read/notifications.yaml'"/api/user/{userslug}/chats/{roomid}":- $ref: 'api/user/userslug/chats/roomid.yaml'+ $ref: 'read/user/userslug/chats/roomid.yaml'"/api/chats/{roomid}":- $ref: 'api/chats/roomid.yaml'+ $ref: 'read/chats/roomid.yaml'/api/groups:- $ref: 'api/groups.yaml'+ $ref: 'read/groups.yaml'"/api/groups/{slug}":- $ref: 'api/groups/slug.yaml'+ $ref: 'read/groups/slug.yaml'"/api/groups/{slug}/members":- $ref: 'api/groups/slug/members.yaml'\ No newline at end of file+ $ref: 'read/groups/slug/members.yaml'\ No newline at end of filediff --git a/public/openapi/api/admin/advanced/cache.yaml b/public/openapi/read/admin/advanced/cache.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/cache.yamlrename to public/openapi/read/admin/advanced/cache.yamldiff --git a/public/openapi/api/admin/advanced/database.yaml b/public/openapi/read/admin/advanced/database.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/database.yamlrename to public/openapi/read/admin/advanced/database.yamldiff --git a/public/openapi/api/admin/advanced/errors.yaml b/public/openapi/read/admin/advanced/errors.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/errors.yamlrename to public/openapi/read/admin/advanced/errors.yamldiff --git a/public/openapi/api/admin/advanced/errors/export.yaml b/public/openapi/read/admin/advanced/errors/export.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/errors/export.yamlrename to public/openapi/read/admin/advanced/errors/export.yamldiff --git a/public/openapi/api/admin/advanced/events.yaml b/public/openapi/read/admin/advanced/events.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/events.yamlrename to public/openapi/read/admin/advanced/events.yamldiff --git a/public/openapi/api/admin/advanced/hooks.yaml b/public/openapi/read/admin/advanced/hooks.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/hooks.yamlrename to public/openapi/read/admin/advanced/hooks.yamldiff --git a/public/openapi/api/admin/advanced/logs.yaml b/public/openapi/read/admin/advanced/logs.yamlsimilarity index 100%rename from public/openapi/api/admin/advanced/logs.yamlrename to public/openapi/read/admin/advanced/logs.yamldiff --git a/public/openapi/api/admin/analytics.yaml b/public/openapi/read/admin/analytics.yamlsimilarity index 100%rename from public/openapi/api/admin/analytics.yamlrename to public/openapi/read/admin/analytics.yamldiff --git a/public/openapi/api/admin/appearance/term.yaml b/public/openapi/read/admin/appearance/term.yamlsimilarity index 100%rename from public/openapi/api/admin/appearance/term.yamlrename to public/openapi/read/admin/appearance/term.yamldiff --git a/public/openapi/api/admin/category/uploadpicture.yaml b/public/openapi/read/admin/category/uploadpicture.yamlsimilarity index 100%rename from public/openapi/api/admin/category/uploadpicture.yamlrename to public/openapi/read/admin/category/uploadpicture.yamldiff --git a/public/openapi/api/admin/dashboard.yaml b/public/openapi/read/admin/dashboard.yamlsimilarity index 100%rename from public/openapi/api/admin/dashboard.yamlrename to public/openapi/read/admin/dashboard.yamldiff --git a/public/openapi/api/admin/development/info.yaml b/public/openapi/read/admin/development/info.yamlsimilarity index 100%rename from public/openapi/api/admin/development/info.yamlrename to public/openapi/read/admin/development/info.yamldiff --git a/public/openapi/api/admin/development/logger.yaml b/public/openapi/read/admin/development/logger.yamlsimilarity index 100%rename from public/openapi/api/admin/development/logger.yamlrename to public/openapi/read/admin/development/logger.yamldiff --git a/public/openapi/api/admin/extend/plugins.yaml b/public/openapi/read/admin/extend/plugins.yamlsimilarity index 100%rename from public/openapi/api/admin/extend/plugins.yamlrename to public/openapi/read/admin/extend/plugins.yamldiff --git a/public/openapi/api/admin/extend/rewards.yaml b/public/openapi/read/admin/extend/rewards.yamlsimilarity index 100%rename from public/openapi/api/admin/extend/rewards.yamlrename to public/openapi/read/admin/extend/rewards.yamldiff --git a/public/openapi/api/admin/extend/widgets.yaml b/public/openapi/read/admin/extend/widgets.yamlsimilarity index 100%rename from public/openapi/api/admin/extend/widgets.yamlrename to public/openapi/read/admin/extend/widgets.yamldiff --git a/public/openapi/api/admin/groups/groupname/csv.yaml b/public/openapi/read/admin/groups/groupname/csv.yamlsimilarity index 100%rename from public/openapi/api/admin/groups/groupname/csv.yamlrename to public/openapi/read/admin/groups/groupname/csv.yamldiff --git a/public/openapi/api/admin/manage/admins-mods.yaml b/public/openapi/read/admin/manage/admins-mods.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/admins-mods.yamlrename to public/openapi/read/admin/manage/admins-mods.yamldiff --git a/public/openapi/api/admin/manage/categories.yaml b/public/openapi/read/admin/manage/categories.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/categories.yamlrename to public/openapi/read/admin/manage/categories.yamldiff --git a/public/openapi/api/admin/manage/categories/category_id.yaml b/public/openapi/read/admin/manage/categories/category_id.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/categories/category_id.yamlrename to public/openapi/read/admin/manage/categories/category_id.yamldiff --git a/public/openapi/api/admin/manage/categories/category_id/analytics.yaml b/public/openapi/read/admin/manage/categories/category_id/analytics.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/categories/category_id/analytics.yamlrename to public/openapi/read/admin/manage/categories/category_id/analytics.yamldiff --git a/public/openapi/api/admin/manage/digest.yaml b/public/openapi/read/admin/manage/digest.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/digest.yamlrename to public/openapi/read/admin/manage/digest.yamldiff --git a/public/openapi/api/admin/manage/groups.yaml b/public/openapi/read/admin/manage/groups.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/groups.yamlrename to public/openapi/read/admin/manage/groups.yamldiff --git a/public/openapi/api/admin/manage/groups/name.yaml b/public/openapi/read/admin/manage/groups/name.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/groups/name.yamlrename to public/openapi/read/admin/manage/groups/name.yamldiff --git a/public/openapi/api/admin/manage/privileges/cid.yaml b/public/openapi/read/admin/manage/privileges/cid.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/privileges/cid.yamlrename to public/openapi/read/admin/manage/privileges/cid.yamldiff --git a/public/openapi/api/admin/manage/registration.yaml b/public/openapi/read/admin/manage/registration.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/registration.yamlrename to public/openapi/read/admin/manage/registration.yamldiff --git a/public/openapi/api/admin/manage/tags.yaml b/public/openapi/read/admin/manage/tags.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/tags.yamlrename to public/openapi/read/admin/manage/tags.yamldiff --git a/public/openapi/api/admin/manage/uploads.yaml b/public/openapi/read/admin/manage/uploads.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/uploads.yamlrename to public/openapi/read/admin/manage/uploads.yamldiff --git a/public/openapi/api/admin/manage/users.yaml b/public/openapi/read/admin/manage/users.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users.yamlrename to public/openapi/read/admin/manage/users.yamldiff --git a/public/openapi/api/admin/manage/users/banned.yaml b/public/openapi/read/admin/manage/users/banned.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/banned.yamlrename to public/openapi/read/admin/manage/users/banned.yamldiff --git a/public/openapi/api/admin/manage/users/flagged.yaml b/public/openapi/read/admin/manage/users/flagged.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/flagged.yamlrename to public/openapi/read/admin/manage/users/flagged.yamldiff --git a/public/openapi/api/admin/manage/users/inactive.yaml b/public/openapi/read/admin/manage/users/inactive.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/inactive.yamlrename to public/openapi/read/admin/manage/users/inactive.yamldiff --git a/public/openapi/api/admin/manage/users/latest.yaml b/public/openapi/read/admin/manage/users/latest.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/latest.yamlrename to public/openapi/read/admin/manage/users/latest.yamldiff --git a/public/openapi/api/admin/manage/users/most-reputation.yaml b/public/openapi/read/admin/manage/users/most-reputation.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/most-reputation.yamlrename to public/openapi/read/admin/manage/users/most-reputation.yamldiff --git a/public/openapi/api/admin/manage/users/no-posts.yaml b/public/openapi/read/admin/manage/users/no-posts.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/no-posts.yamlrename to public/openapi/read/admin/manage/users/no-posts.yamldiff --git a/public/openapi/api/admin/manage/users/not-validated.yaml b/public/openapi/read/admin/manage/users/not-validated.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/not-validated.yamlrename to public/openapi/read/admin/manage/users/not-validated.yamldiff --git a/public/openapi/api/admin/manage/users/search.yaml b/public/openapi/read/admin/manage/users/search.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/search.yamlrename to public/openapi/read/admin/manage/users/search.yamldiff --git a/public/openapi/api/admin/manage/users/top-posters.yaml b/public/openapi/read/admin/manage/users/top-posters.yamlsimilarity index 100%rename from public/openapi/api/admin/manage/users/top-posters.yamlrename to public/openapi/read/admin/manage/users/top-posters.yamldiff --git a/public/openapi/api/admin/settings/homepage.yaml b/public/openapi/read/admin/settings/homepage.yamlsimilarity index 100%rename from public/openapi/api/admin/settings/homepage.yamlrename to public/openapi/read/admin/settings/homepage.yamldiff --git a/public/openapi/api/admin/settings/languages.yaml b/public/openapi/read/admin/settings/languages.yamlsimilarity index 100%rename from public/openapi/api/admin/settings/languages.yamlrename to public/openapi/read/admin/settings/languages.yamldiff --git a/public/openapi/api/admin/settings/navigation.yaml b/public/openapi/read/admin/settings/navigation.yamlsimilarity index 100%rename from public/openapi/api/admin/settings/navigation.yamlrename to public/openapi/read/admin/settings/navigation.yamldiff --git a/public/openapi/api/admin/settings/social.yaml b/public/openapi/read/admin/settings/social.yamlsimilarity index 100%rename from public/openapi/api/admin/settings/social.yamlrename to public/openapi/read/admin/settings/social.yamldiff --git a/public/openapi/api/admin/settings/term.yaml b/public/openapi/read/admin/settings/term.yamlsimilarity index 100%rename from public/openapi/api/admin/settings/term.yamlrename to public/openapi/read/admin/settings/term.yamldiff --git a/public/openapi/api/admin/upload/file.yaml b/public/openapi/read/admin/upload/file.yamlsimilarity index 100%rename from public/openapi/api/admin/upload/file.yamlrename to public/openapi/read/admin/upload/file.yamldiff --git a/public/openapi/api/admin/uploadDefaultAvatar.yaml b/public/openapi/read/admin/uploadDefaultAvatar.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadDefaultAvatar.yamlrename to public/openapi/read/admin/uploadDefaultAvatar.yamldiff --git a/public/openapi/api/admin/uploadMaskableIcon.yaml b/public/openapi/read/admin/uploadMaskableIcon.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadMaskableIcon.yamlrename to public/openapi/read/admin/uploadMaskableIcon.yamldiff --git a/public/openapi/api/admin/uploadOgImage.yaml b/public/openapi/read/admin/uploadOgImage.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadOgImage.yamlrename to public/openapi/read/admin/uploadOgImage.yamldiff --git a/public/openapi/api/admin/uploadTouchIcon.yaml b/public/openapi/read/admin/uploadTouchIcon.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadTouchIcon.yamlrename to public/openapi/read/admin/uploadTouchIcon.yamldiff --git a/public/openapi/api/admin/uploadfavicon.yaml b/public/openapi/read/admin/uploadfavicon.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadfavicon.yamlrename to public/openapi/read/admin/uploadfavicon.yamldiff --git a/public/openapi/api/admin/uploadlogo.yaml b/public/openapi/read/admin/uploadlogo.yamlsimilarity index 100%rename from public/openapi/api/admin/uploadlogo.yamlrename to public/openapi/read/admin/uploadlogo.yamldiff --git a/public/openapi/api/admin/users/csv.yaml b/public/openapi/read/admin/users/csv.yamlsimilarity index 100%rename from public/openapi/api/admin/users/csv.yamlrename to public/openapi/read/admin/users/csv.yamldiff --git a/public/openapi/api/categories.yaml b/public/openapi/read/categories.yamlsimilarity index 100%rename from public/openapi/api/categories.yamlrename to public/openapi/read/categories.yamldiff --git a/public/openapi/api/categories/cid/moderators.yaml b/public/openapi/read/categories/cid/moderators.yamlsimilarity index 100%rename from public/openapi/api/categories/cid/moderators.yamlrename to public/openapi/read/categories/cid/moderators.yamldiff --git a/public/openapi/api/category/category_id/slug/topic_index.yaml b/public/openapi/read/category/category_id/slug/topic_index.yamlsimilarity index 100%rename from public/openapi/api/category/category_id/slug/topic_index.yamlrename to public/openapi/read/category/category_id/slug/topic_index.yamldiff --git a/public/openapi/api/category/cid/id.yaml b/public/openapi/read/category/cid/id.yamlsimilarity index 100%rename from public/openapi/api/category/cid/id.yamlrename to public/openapi/read/category/cid/id.yamldiff --git a/public/openapi/api/chats/roomid.yaml b/public/openapi/read/chats/roomid.yamlsimilarity index 100%rename from public/openapi/api/chats/roomid.yamlrename to public/openapi/read/chats/roomid.yamldiff --git a/public/openapi/api/config.yaml b/public/openapi/read/config.yamlsimilarity index 100%rename from public/openapi/api/config.yamlrename to public/openapi/read/config.yamldiff --git a/public/openapi/api/email/unsubscribe/token.yaml b/public/openapi/read/email/unsubscribe/token.yamlsimilarity index 100%rename from public/openapi/api/email/unsubscribe/token.yamlrename to public/openapi/read/email/unsubscribe/token.yamldiff --git a/public/openapi/api/flags.yaml b/public/openapi/read/flags.yamlsimilarity index 100%rename from public/openapi/api/flags.yamlrename to public/openapi/read/flags.yamldiff --git a/public/openapi/api/flags/flagId.yaml b/public/openapi/read/flags/flagId.yamlsimilarity index 100%rename from public/openapi/api/flags/flagId.yamlrename to public/openapi/read/flags/flagId.yamldiff --git a/public/openapi/api/groups.yaml b/public/openapi/read/groups.yamlsimilarity index 100%rename from public/openapi/api/groups.yamlrename to public/openapi/read/groups.yamldiff --git a/public/openapi/api/groups/slug.yaml b/public/openapi/read/groups/slug.yamlsimilarity index 100%rename from public/openapi/api/groups/slug.yamlrename to public/openapi/read/groups/slug.yamldiff --git a/public/openapi/api/groups/slug/members.yaml b/public/openapi/read/groups/slug/members.yamlsimilarity index 100%rename from public/openapi/api/groups/slug/members.yamlrename to public/openapi/read/groups/slug/members.yamldiff --git a/public/openapi/api/index.yaml b/public/openapi/read/index.yamlsimilarity index 100%rename from public/openapi/api/index.yamlrename to public/openapi/read/index.yamldiff --git a/public/openapi/api/ip-blacklist.yaml b/public/openapi/read/ip-blacklist.yamlsimilarity index 100%rename from public/openapi/api/ip-blacklist.yamlrename to public/openapi/read/ip-blacklist.yamldiff --git a/public/openapi/api/login.yaml b/public/openapi/read/login.yamlsimilarity index 100%rename from public/openapi/api/login.yamlrename to public/openapi/read/login.yamldiff --git a/public/openapi/api/me.yaml b/public/openapi/read/me.yamlsimilarity index 100%rename from public/openapi/api/me.yamlrename to public/openapi/read/me.yamldiff --git a/public/openapi/api/notifications.yaml b/public/openapi/read/notifications.yamlsimilarity index 100%rename from public/openapi/api/notifications.yamlrename to public/openapi/read/notifications.yamldiff --git a/public/openapi/api/popular.yaml b/public/openapi/read/popular.yamlsimilarity index 100%rename from public/openapi/api/popular.yamlrename to public/openapi/read/popular.yamldiff --git a/public/openapi/api/post-queue.yaml b/public/openapi/read/post-queue.yamlsimilarity index 100%rename from public/openapi/api/post-queue.yamlrename to public/openapi/read/post-queue.yamldiff --git a/public/openapi/api/post/pid.yaml b/public/openapi/read/post/pid.yamlsimilarity index 100%rename from public/openapi/api/post/pid.yamlrename to public/openapi/read/post/pid.yamldiff --git a/public/openapi/api/post/pid/id.yaml b/public/openapi/read/post/pid/id.yamlsimilarity index 100%rename from public/openapi/api/post/pid/id.yamlrename to public/openapi/read/post/pid/id.yamldiff --git a/public/openapi/api/post/upload.yaml b/public/openapi/read/post/upload.yamlsimilarity index 100%rename from public/openapi/api/post/upload.yamlrename to public/openapi/read/post/upload.yamldiff --git a/public/openapi/api/recent.yaml b/public/openapi/read/recent.yamlsimilarity index 100%rename from public/openapi/api/recent.yamlrename to public/openapi/read/recent.yamldiff --git a/public/openapi/api/recent/posts/term.yaml b/public/openapi/read/recent/posts/term.yamlsimilarity index 100%rename from public/openapi/api/recent/posts/term.yamlrename to public/openapi/read/recent/posts/term.yamldiff --git a/public/openapi/api/register.yaml b/public/openapi/read/register.yamlsimilarity index 100%rename from public/openapi/api/register.yamlrename to public/openapi/read/register.yamldiff --git a/public/openapi/api/registration-queue.yaml b/public/openapi/read/registration-queue.yamlsimilarity index 100%rename from public/openapi/api/registration-queue.yamlrename to public/openapi/read/registration-queue.yamldiff --git a/public/openapi/api/reset.yaml b/public/openapi/read/reset.yamlsimilarity index 100%rename from public/openapi/api/reset.yamlrename to public/openapi/read/reset.yamldiff --git a/public/openapi/api/reset/code.yaml b/public/openapi/read/reset/code.yamlsimilarity index 100%rename from public/openapi/api/reset/code.yamlrename to public/openapi/read/reset/code.yamldiff --git a/public/openapi/api/search.yaml b/public/openapi/read/search.yamlsimilarity index 100%rename from public/openapi/api/search.yamlrename to public/openapi/read/search.yamldiff --git a/public/openapi/api/self.yaml b/public/openapi/read/self.yamlsimilarity index 100%rename from public/openapi/api/self.yamlrename to public/openapi/read/self.yamldiff --git a/public/openapi/api/tags.yaml b/public/openapi/read/tags.yamlsimilarity index 100%rename from public/openapi/api/tags.yamlrename to public/openapi/read/tags.yamldiff --git a/public/openapi/api/tags/tag.yaml b/public/openapi/read/tags/tag.yamlsimilarity index 100%rename from public/openapi/api/tags/tag.yamlrename to public/openapi/read/tags/tag.yamldiff --git a/public/openapi/api/top.yaml b/public/openapi/read/top.yamlsimilarity index 100%rename from public/openapi/api/top.yamlrename to public/openapi/read/top.yamldiff --git a/public/openapi/api/topic/pagination/topic_id.yaml b/public/openapi/read/topic/pagination/topic_id.yamlsimilarity index 100%rename from public/openapi/api/topic/pagination/topic_id.yamlrename to public/openapi/read/topic/pagination/topic_id.yamldiff --git a/public/openapi/api/topic/teaser/topic_id.yaml b/public/openapi/read/topic/teaser/topic_id.yamlsimilarity index 100%rename from public/openapi/api/topic/teaser/topic_id.yamlrename to public/openapi/read/topic/teaser/topic_id.yamldiff --git a/public/openapi/api/topic/thumb/upload.yaml b/public/openapi/read/topic/thumb/upload.yamlsimilarity index 100%rename from public/openapi/api/topic/thumb/upload.yamlrename to public/openapi/read/topic/thumb/upload.yamldiff --git a/public/openapi/api/topic/tid/id.yaml b/public/openapi/read/topic/tid/id.yamlsimilarity index 100%rename from public/openapi/api/topic/tid/id.yamlrename to public/openapi/read/topic/tid/id.yamldiff --git a/public/openapi/api/topic/topic_id/slug/post_index.yaml b/public/openapi/read/topic/topic_id/slug/post_index.yamlsimilarity index 100%rename from public/openapi/api/topic/topic_id/slug/post_index.yamlrename to public/openapi/read/topic/topic_id/slug/post_index.yamldiff --git a/public/openapi/api/uid/uid.yaml b/public/openapi/read/uid/uid.yamlsimilarity index 100%rename from public/openapi/api/uid/uid.yamlrename to public/openapi/read/uid/uid.yamldiff --git a/public/openapi/api/unread.yaml b/public/openapi/read/unread.yamlsimilarity index 100%rename from public/openapi/api/unread.yamlrename to public/openapi/read/unread.yamldiff --git a/public/openapi/api/unread/total.yaml b/public/openapi/read/unread/total.yamlsimilarity index 100%rename from public/openapi/api/unread/total.yamlrename to public/openapi/read/unread/total.yamldiff --git a/public/openapi/api/user/email/email.yaml b/public/openapi/read/user/email/email.yamlsimilarity index 100%rename from public/openapi/api/user/email/email.yamlrename to public/openapi/read/user/email/email.yamldiff --git a/public/openapi/api/user/uid/uid.yaml b/public/openapi/read/user/uid/uid.yamlsimilarity index 100%rename from public/openapi/api/user/uid/uid.yamlrename to public/openapi/read/user/uid/uid.yamldiff --git a/public/openapi/api/user/uid/userslug/export/posts.yaml b/public/openapi/read/user/uid/userslug/export/posts.yamlsimilarity index 100%rename from public/openapi/api/user/uid/userslug/export/posts.yamlrename to public/openapi/read/user/uid/userslug/export/posts.yamldiff --git a/public/openapi/api/user/uid/userslug/export/profile.yaml b/public/openapi/read/user/uid/userslug/export/profile.yamlsimilarity index 100%rename from public/openapi/api/user/uid/userslug/export/profile.yamlrename to public/openapi/read/user/uid/userslug/export/profile.yamldiff --git a/public/openapi/api/user/uid/userslug/export/uploads.yaml b/public/openapi/read/user/uid/userslug/export/uploads.yamlsimilarity index 100%rename from public/openapi/api/user/uid/userslug/export/uploads.yamlrename to public/openapi/read/user/uid/userslug/export/uploads.yamldiff --git a/public/openapi/api/user/username/username.yaml b/public/openapi/read/user/username/username.yamlsimilarity index 100%rename from public/openapi/api/user/username/username.yamlrename to public/openapi/read/user/username/username.yamldiff --git a/public/openapi/api/user/userslug.yaml b/public/openapi/read/user/userslug.yamlsimilarity index 100%rename from public/openapi/api/user/userslug.yamlrename to public/openapi/read/user/userslug.yamldiff --git a/public/openapi/api/user/userslug/best.yaml b/public/openapi/read/user/userslug/best.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/best.yamlrename to public/openapi/read/user/userslug/best.yamldiff --git a/public/openapi/api/user/userslug/blocks.yaml b/public/openapi/read/user/userslug/blocks.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/blocks.yamlrename to public/openapi/read/user/userslug/blocks.yamldiff --git a/public/openapi/api/user/userslug/bookmarks.yaml b/public/openapi/read/user/userslug/bookmarks.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/bookmarks.yamlrename to public/openapi/read/user/userslug/bookmarks.yamldiff --git a/public/openapi/api/user/userslug/categories.yaml b/public/openapi/read/user/userslug/categories.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/categories.yamlrename to public/openapi/read/user/userslug/categories.yamldiff --git a/public/openapi/api/user/userslug/chats/roomid.yaml b/public/openapi/read/user/userslug/chats/roomid.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/chats/roomid.yamlrename to public/openapi/read/user/userslug/chats/roomid.yamldiff --git a/public/openapi/api/user/userslug/consent.yaml b/public/openapi/read/user/userslug/consent.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/consent.yamlrename to public/openapi/read/user/userslug/consent.yamldiff --git a/public/openapi/api/user/userslug/downvoted.yaml b/public/openapi/read/user/userslug/downvoted.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/downvoted.yamlrename to public/openapi/read/user/userslug/downvoted.yamldiff --git a/public/openapi/api/user/userslug/edit.yaml b/public/openapi/read/user/userslug/edit.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/edit.yamlrename to public/openapi/read/user/userslug/edit.yamldiff --git a/public/openapi/api/user/userslug/edit/email.yaml b/public/openapi/read/user/userslug/edit/email.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/edit/email.yamlrename to public/openapi/read/user/userslug/edit/email.yamldiff --git a/public/openapi/api/user/userslug/edit/password.yaml b/public/openapi/read/user/userslug/edit/password.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/edit/password.yamlrename to public/openapi/read/user/userslug/edit/password.yamldiff --git a/public/openapi/api/user/userslug/edit/username.yaml b/public/openapi/read/user/userslug/edit/username.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/edit/username.yamlrename to public/openapi/read/user/userslug/edit/username.yamldiff --git a/public/openapi/api/user/userslug/followers.yaml b/public/openapi/read/user/userslug/followers.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/followers.yamlrename to public/openapi/read/user/userslug/followers.yamldiff --git a/public/openapi/api/user/userslug/following.yaml b/public/openapi/read/user/userslug/following.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/following.yamlrename to public/openapi/read/user/userslug/following.yamldiff --git a/public/openapi/api/user/userslug/groups.yaml b/public/openapi/read/user/userslug/groups.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/groups.yamlrename to public/openapi/read/user/userslug/groups.yamldiff --git a/public/openapi/api/user/userslug/ignored.yaml b/public/openapi/read/user/userslug/ignored.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/ignored.yamlrename to public/openapi/read/user/userslug/ignored.yamldiff --git a/public/openapi/api/user/userslug/info.yaml b/public/openapi/read/user/userslug/info.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/info.yamlrename to public/openapi/read/user/userslug/info.yamldiff --git a/public/openapi/api/user/userslug/posts.yaml b/public/openapi/read/user/userslug/posts.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/posts.yamlrename to public/openapi/read/user/userslug/posts.yamldiff --git a/public/openapi/api/user/userslug/session/uuid.yaml b/public/openapi/read/user/userslug/session/uuid.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/session/uuid.yamlrename to public/openapi/read/user/userslug/session/uuid.yamldiff --git a/public/openapi/api/user/userslug/sessions.yaml b/public/openapi/read/user/userslug/sessions.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/sessions.yamlrename to public/openapi/read/user/userslug/sessions.yamldiff --git a/public/openapi/api/user/userslug/settings.yaml b/public/openapi/read/user/userslug/settings.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/settings.yamlrename to public/openapi/read/user/userslug/settings.yamldiff --git a/public/openapi/api/user/userslug/topics.yaml b/public/openapi/read/user/userslug/topics.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/topics.yamlrename to public/openapi/read/user/userslug/topics.yamldiff --git a/public/openapi/api/user/userslug/uploads.yaml b/public/openapi/read/user/userslug/uploads.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/uploads.yamlrename to public/openapi/read/user/userslug/uploads.yamldiff --git a/public/openapi/api/user/userslug/upvoted.yaml b/public/openapi/read/user/userslug/upvoted.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/upvoted.yamlrename to public/openapi/read/user/userslug/upvoted.yamldiff --git a/public/openapi/api/user/userslug/watched.yaml b/public/openapi/read/user/userslug/watched.yamlsimilarity index 100%rename from public/openapi/api/user/userslug/watched.yamlrename to public/openapi/read/user/userslug/watched.yamldiff --git a/public/openapi/api/users.yaml b/public/openapi/read/users.yamlsimilarity index 100%rename from public/openapi/api/users.yamlrename to public/openapi/read/users.yamldiff --git a/public/openapi/write.yaml b/public/openapi/write.yamlindex fe439d4ca1..4d23603ddb 100644--- a/public/openapi/write.yaml+++ b/public/openapi/write.yaml@@ -29,1055 +29,38 @@ tags:description: Administrative calls to manage categoriespaths:/users/:- post:- tags:- - users- summary: create a user- description: This operation creates a new user account- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- username:- type: string- description: 'If the username is taken, a number will be appended'- password:- type: string- email:- type: string- required:- - username- example:- username: Dragon Fruit- password: s3cre7password- email: [email protected]- responses:- '200':- description: user successfully created- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/UserObj.yaml#/UserObj- '400':- $ref: components/responses/400.yaml#/400- '401':- $ref: components/responses/401.yaml#/401- '403':- $ref: components/responses/403.yaml#/403- '426':- $ref: components/responses/426.yaml#/426- '500':- $ref: components/responses/500.yaml#/500- delete:- tags:- - users- summary: delete one or more users- description: This operation deletes one or many user accounts, including their contributions (posts, topics, etc.)- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- uids:- type: array- description: A collection of uids- items:- type: number- example:- uids:- - 1- - 2- - 3- responses:- '200':- description: user account(s) deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- '/users/{uid}':- delete:- tags:- - users- summary: delete a single user account- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to delete- responses:- '200':- description: user account deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object-- put:- tags:- - users- summary: update a user account- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to update- requestBody:- required: true- content:- application/json:- schema:- $ref: components/schemas/UserRequest.yaml#/UserRequest- responses:- '200':- description: user profile updated- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/UserObj.yaml#/UserObj- '401':- $ref: components/responses/401.yaml#/401- '403':- $ref: components/responses/403.yaml#/403- '426':- $ref: components/responses/426.yaml#/426- '500':- $ref: components/responses/500.yaml#/500- '/users/{uid}/password':- put:- tags:- - users- summary: change a user's password- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to update- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- currentPassword:- type: string- description: test- example: oldp455word- newPassword:- type: string- example: s3cre7password- required:- - newPassword- responses:- '200':- description: user profile updated- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- '/users/{uid}/follow':- post:- tags:- - users- summary: follow a user- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to follow- responses:- '200':- description: successfully followed user- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- delete:- tags:- - users- summary: unfollows a user- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to unfollow- responses:- '200':- description: successfully unfollowed user- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- '/users/{uid}/ban':- put:- tags:- - users- summary: ban a user- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to ban- requestBody:- content:- application/json:- schema:- type: object- properties:- until:- type: number- description: UNIX timestamp of the ban expiry- example: 1585775608076- reason:- type: string- example: the reason for the ban- responses:- '200':- description: successfully banned user- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- delete:- tags:- - users- summary: unbans a user- parameters:- - in: path- name: uid- schema:- type: integer- required: true- description: uid of the user to unban- responses:- '200':- description: successfully unbanned user- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- '/users/{uid}/tokens':- post:- tags:- - users- summary: generate a user token- description: This route can only be used to generate tokens for the same user. In other words, you cannot use this route to generate a token for a different user than the one you are authenticated as.- responses:- '200':- description: successfully generated a user token- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- delete:- tags:- - users- summary: delete user token- parameters:- - in: path- name: token- schema:- type: string- required: true- description: a valid API token- responses:- '200':- description: successfully deleted user token- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object+ $ref: 'write/users.yaml'/categories/:- post:- tags:- - categories- summary: create a category- description: This operation creates a new category- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- name:- type: string- description:- type: string- parentCid:- type: number- cloneFromCid:- type: number- icon:- type: string- description: A ForkAwesome icon without the `fa-` prefix- bgColor:- type: string- color:- type: string- link:- type: string- class:- type: string- backgroundImage:- type: string- required:- - name- example:- name: My New Category- description: Lorem ipsum, dolor sit amet- parentCid: 0- cloneFromCid: 0- icon: bullhorn- bgColor: '#ffffff'- color: '#000000'- link: 'https://example.org'- class: 'col-md-3 col-xs-6'- backgroundImage: '/assets/relative/path/to/image'- responses:- '200':- description: category successfully created- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/CategoryObj.yaml#/CategoryObj+ $ref: 'write/categories.yaml'/groups/:- post:- tags:- - groups- summary: create a new group- description: This operation creates a new group- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- name:- type: string- timestamp:- type: number- disableJoinRequests:- type: number- enum: [0, 1]- disableLeave:- type: number- enum: [0, 1]- hidden:- type: number- enum: [0, 1]- ownerUid:- type: number- private:- type: number- enum: [0, 1]- description:- type: string- userTitleEnabled:- type: number- enum: [0, 1]- createtime:- type: number- required:- - name- example:- name: 'My Test Group'- hidden: 1- responses:- '200':- description: group successfully created- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/GroupObject.yaml#/GroupDataObject- delete:- tags:- - groups- summary: Delete an existing group- description: This operation deletes an existing group, all members within this group will cease to be members after the group is deleted.- responses:- '200':- description: group successfully deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/groups.yaml'/groups/{slug}/membership/{uid}:- put:- tags:- - groups- summary: join a group- description: This operation joins an existing group, or causes another user to join a group. If the group is private and you are not an administrator, this method will cause that user to request membership, instead. For user _invitations_, you'll want to call `PUT /groups/{slug}/invites/{uid}`.- responses:- '200':- description: group successfully joined, or membership requested- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/groups/slug/membership/uid.yaml'/topics:- post:- tags:- - topics- summary: create a new topic- description: This operation creates a new topic with a post. Topic creation without a post is not allowed via the Write API as it is an internal-only method.- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- cid:- type: number- title:- type: string- content:- type: string- tags:- type: array- items:- type: string- required:- - cid- - title- - content- example:- cid: 1- title: Test topic- content: This is the test topic's content- responses:- '200':- description: topic successfully created- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/TopicObject.yaml#/TopicObject+ $ref: 'write/topics.yaml'/topics/{tid}:- post:- tags:- - topics- summary: peply to a topic- description: This operation creates a new reply to an existing topic.- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- content:- type: string- timestamp:- type: number- toPid:- type: number- required:- - content- example:- content: This is a test reply- responses:- '200':- description: post successfully created- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/PostsObject.yaml#/PostsObject- delete:- tags:- - topics- summary: delete a topic- description: This operation purges a topic and all of its posts (careful, there is no confirmation!)- responses:- '200':- description: Topic successfully purged- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid.yaml'/topics/{tid}/state:- delete:- tags:- - topics- summary: delete a topic- description: This operation deletes an existing topic.- responses:- '200':- description: Topic successfully deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- put:- tags:- - topics- summary: restore a topic- description: This operation restores a topic.- responses:- '200':- description: Topic successfully restored- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/state.yaml'/topics/{tid}/lock:- put:- tags:- - topics- summary: lock a topic- description: This operation locks an existing topic.- responses:- '200':- description: Topic successfully locked- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - topics- summary: unlock a topic- description: This operation unlocks a topic.- responses:- '200':- description: Topic successfully unlocked- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/lock.yaml'/topics/{tid}/pin:- put:- tags:- - topics- summary: pin a topic- description: This operation pins an existing topic.- responses:- '200':- description: Topic successfully pinned- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - topics- summary: unpin a topic- description: This operation unpins a topic.- responses:- '200':- description: Topic successfully unpinned- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/pin.yaml'/topics/{tid}/follow:- put:- tags:- - topics- summary: follow a topic- description: This operation follows (or watches) a topic.- responses:- '200':- description: Topic successfully followed- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - topics- summary: unfollow a topic- description: This operation unfollows (or unwatches) a topic.- responses:- '200':- description: Topic successfully unwatched- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/follow.yaml'/topics/{tid}/ignore:- put:- tags:- - topics- summary: ignore a topic- description: This operation ignores (or watches) a topic.- responses:- '200':- description: Topic successfully ignored- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - topics- summary: unignore a topic- description: This operation unignores (or unfollows/unwatches) a topic. It is functionally identical to `DEL /topics/{tid}/follow`.- responses:- '200':- description: Topic successfully unignored/unwatched- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/ignore.yaml'/topics/{tid}/tags:- put:- tags:- - topics- summary: adds tags to a topic- description: This operation adds tags to a topic- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- tags:- type: array- description: 'An array of tags'- items:- type: string- example:- tags:- - test- - foobar- responses:- '200':- description: Topic tags successfully added- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - topics- summary: Removes all tags from a topic- description: This operation removed all tags associated with a topic.- responses:- '200':- description: Topic tags successfully removed.- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/topics/tid/tags.yaml'/posts/{pid}:- put:- tags:- - posts- summary: edit a post- description: This operation edits a post- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- content:- type: string- description: New post content- title:- type: string- description: Topic title, only accepted for main posts- required:- - content- example:- content: 'New post content'- title: 'New title'- responses:- '200':- description: Post successfully edited- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- $ref: components/schemas/PostsObject.yaml#/PostsObject- delete:- tags:- - posts- summary: purge a post- description: This operation purges a post.- responses:- '200':- description: Post successfully purged- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/posts/pid.yaml'/posts/{pid}/state:- put:- tags:- - posts- summary: restore a post- description: This operation restores a post.- responses:- '200':- description: Topic successfully restored- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - posts- summary: deletes a post- description: This operation soft deletes a post.- responses:- '200':- description: Post successfully deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/posts/pid/state.yaml'/posts/{pid}/vote:- put:- tags:- - posts- summary: vote on a post- description: This operation casts a vote on a post.- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- delta:- type: number- description: Positive integer for upvote, negative integer for downvote (0 to unvote.)- example:- delta: 1- responses:- '200':- description: Post successfully upvoted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - posts- summary: unvote a post- description: This operation removes a pre-cast vote on a post.- responses:- '200':- description: Post successfully unvoted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/posts/pid/vote.yaml'/posts/{pid}/bookmark:- put:- tags:- - posts- summary: bookmark a post- description: This operation bookmarks a post.- responses:- '200':- description: Post successfully bookmarked- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}- delete:- tags:- - posts- summary: unbookmark a post- description: This operation unbookmarks a post.- responses:- '200':- description: Post successfully unbookmarked- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/posts/pid/bookmark.yaml'/admin/settings/{setting}:- put:- tags:- - admin- summary: update configuration setting- description: This operation updates a configuration setting in the backend. The calling user must have the `admin:settings` privilege (or be a superadmin) in order for this call to proceed.- parameters:- - in: path- name: setting- schema:- type: string- required: true- description: backend id of the setting to update- responses:- '200':- description: Admin setting updated- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}+ $ref: 'write/admin/settings/setting.yaml'/files:- delete:- tags:- - files- summary: delete uploaded file- description: This operation deletes a file uploaded to NodeBB- requestBody:- required: true- content:- application/json:- schema:- type: object- properties:- path:- type: string- description: Path to the file (relative to the configured `upload_path`)- required:- - path- example:- path: files/uploaded_file.jpg- responses:- '200':- description: File deleted- content:- application/json:- schema:- type: object- properties:- status:- $ref: components/schemas/Status.yaml#/Status- response:- type: object- properties: {}\ No newline at end of file+ $ref: 'write/files.yaml'\ No newline at end of filediff --git a/public/openapi/write/admin/settings/setting.yaml b/public/openapi/write/admin/settings/setting.yamlnew file mode 100644index 0000000000..3b1aeecde0--- /dev/null+++ b/public/openapi/write/admin/settings/setting.yaml@@ -0,0 +1,25 @@+put:+ tags:+ - admin+ summary: update configuration setting+ description: This operation updates a configuration setting in the backend. The calling user must have the `admin:settings` privilege (or be a superadmin) in order for this call to proceed.+ parameters:+ - in: path+ name: setting+ schema:+ type: string+ required: true+ description: backend id of the setting to update+ responses:+ '200':+ description: Admin setting updated+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/categories.yaml b/public/openapi/write/categories.yamlnew file mode 100644index 0000000000..833c906602--- /dev/null+++ b/public/openapi/write/categories.yaml@@ -0,0 +1,58 @@+post:+ tags:+ - categories+ summary: create a category+ description: This operation creates a new category+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ name:+ type: string+ description:+ type: string+ parentCid:+ type: number+ cloneFromCid:+ type: number+ icon:+ type: string+ description: A ForkAwesome icon without the `fa-` prefix+ bgColor:+ type: string+ color:+ type: string+ link:+ type: string+ class:+ type: string+ backgroundImage:+ type: string+ required:+ - name+ example:+ name: My New Category+ description: Lorem ipsum, dolor sit amet+ parentCid: 0+ cloneFromCid: 0+ icon: bullhorn+ bgColor: '#ffffff'+ color: '#000000'+ link: 'https://example.org'+ class: 'col-md-3 col-xs-6'+ backgroundImage: '/assets/relative/path/to/image'+ responses:+ '200':+ description: category successfully created+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ $ref: ../components/schemas/CategoryObj.yaml#/CategoryObj\ No newline at end of filediff --git a/public/openapi/write/files.yaml b/public/openapi/write/files.yamlnew file mode 100644index 0000000000..b4cbaabbaf--- /dev/null+++ b/public/openapi/write/files.yaml@@ -0,0 +1,32 @@+delete:+ tags:+ - files+ summary: delete uploaded file+ description: This operation deletes a file uploaded to NodeBB+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ path:+ type: string+ description: Path to the file (relative to the configured `upload_path`)+ required:+ - path+ example:+ path: files/uploaded_file.jpg+ responses:+ '200':+ description: File deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/groups.yaml b/public/openapi/write/groups.yamlnew file mode 100644index 0000000000..4116201045--- /dev/null+++ b/public/openapi/write/groups.yaml@@ -0,0 +1,72 @@+post:+ tags:+ - groups+ summary: create a new group+ description: This operation creates a new group+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ name:+ type: string+ timestamp:+ type: number+ disableJoinRequests:+ type: number+ enum: [0, 1]+ disableLeave:+ type: number+ enum: [0, 1]+ hidden:+ type: number+ enum: [0, 1]+ ownerUid:+ type: number+ private:+ type: number+ enum: [0, 1]+ description:+ type: string+ userTitleEnabled:+ type: number+ enum: [0, 1]+ createtime:+ type: number+ required:+ - name+ example:+ name: 'My Test Group'+ hidden: 1+ responses:+ '200':+ description: group successfully created+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ $ref: ../components/schemas/GroupObject.yaml#/GroupDataObject+delete:+ tags:+ - groups+ summary: Delete an existing group+ description: This operation deletes an existing group, all members within this group will cease to be members after the group is deleted.+ responses:+ '200':+ description: group successfully deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/groups/slug/membership/uid.yaml b/public/openapi/write/groups/slug/membership/uid.yamlnew file mode 100644index 0000000000..fd7222a3a0--- /dev/null+++ b/public/openapi/write/groups/slug/membership/uid.yaml@@ -0,0 +1,18 @@+put:+ tags:+ - groups+ summary: join a group+ description: This operation joins an existing group, or causes another user to join a group. If the group is private and you are not an administrator, this method will cause that user to request membership, instead. For user _invitations_, you'll want to call `PUT /groups/{slug}/invites/{uid}`.+ responses:+ '200':+ description: group successfully joined, or membership requested+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/posts/pid.yaml b/public/openapi/write/posts/pid.yamlnew file mode 100644index 0000000000..0942b10bd4--- /dev/null+++ b/public/openapi/write/posts/pid.yaml@@ -0,0 +1,53 @@+put:+ tags:+ - posts+ summary: edit a post+ description: This operation edits a post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ content:+ type: string+ description: New post content+ title:+ type: string+ description: Topic title, only accepted for main posts+ required:+ - content+ example:+ content: 'New post content'+ title: 'New title'+ responses:+ '200':+ description: Post successfully edited+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../components/schemas/Status.yaml#/Status+ response:+ $ref: ../../components/schemas/PostsObject.yaml#/PostsObject+delete:+ tags:+ - posts+ summary: purge a post+ description: This operation purges a post.+ responses:+ '200':+ description: Post successfully purged+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/posts/pid/bookmark.yaml b/public/openapi/write/posts/pid/bookmark.yamlnew file mode 100644index 0000000000..66421a5111--- /dev/null+++ b/public/openapi/write/posts/pid/bookmark.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - posts+ summary: bookmark a post+ description: This operation bookmarks a post.+ responses:+ '200':+ description: Post successfully bookmarked+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - posts+ summary: unbookmark a post+ description: This operation unbookmarks a post.+ responses:+ '200':+ description: Post successfully unbookmarked+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/posts/pid/state.yaml b/public/openapi/write/posts/pid/state.yamlnew file mode 100644index 0000000000..c2f958d94e--- /dev/null+++ b/public/openapi/write/posts/pid/state.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - posts+ summary: restore a post+ description: This operation restores a post.+ responses:+ '200':+ description: Topic successfully restored+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - posts+ summary: deletes a post+ description: This operation soft deletes a post.+ responses:+ '200':+ description: Post successfully deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/posts/pid/vote.yaml b/public/openapi/write/posts/pid/vote.yamlnew file mode 100644index 0000000000..e93dd6f149--- /dev/null+++ b/public/openapi/write/posts/pid/vote.yaml@@ -0,0 +1,48 @@+put:+ tags:+ - posts+ summary: vote on a post+ description: This operation casts a vote on a post.+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ delta:+ type: number+ description: Positive integer for upvote, negative integer for downvote (0 to unvote.)+ example:+ delta: 1+ responses:+ '200':+ description: Post successfully upvoted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - posts+ summary: unvote a post+ description: This operation removes a pre-cast vote on a post.+ responses:+ '200':+ description: Post successfully unvoted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics.yaml b/public/openapi/write/topics.yamlnew file mode 100644index 0000000000..5ba1a9809d--- /dev/null+++ b/public/openapi/write/topics.yaml@@ -0,0 +1,42 @@+post:+ tags:+ - topics+ summary: create a new topic+ description: This operation creates a new topic with a post. Topic creation without a post is not allowed via the Write API as it is an internal-only method.+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ cid:+ type: number+ title:+ type: string+ content:+ type: string+ tags:+ type: array+ items:+ type: string+ required:+ - cid+ - title+ - content+ example:+ cid: 1+ title: Test topic+ content: This is the test topic's content+ responses:+ '200':+ description: topic successfully created+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ $ref: ../components/schemas/TopicObject.yaml#/TopicObject\ No newline at end of filediff --git a/public/openapi/write/topics/tid.yaml b/public/openapi/write/topics/tid.yamlnew file mode 100644index 0000000000..692bfd51aa--- /dev/null+++ b/public/openapi/write/topics/tid.yaml@@ -0,0 +1,52 @@+post:+ tags:+ - topics+ summary: peply to a topic+ description: This operation creates a new reply to an existing topic.+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ content:+ type: string+ timestamp:+ type: number+ toPid:+ type: number+ required:+ - content+ example:+ content: This is a test reply+ responses:+ '200':+ description: post successfully created+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../components/schemas/Status.yaml#/Status+ response:+ $ref: ../../components/schemas/PostsObject.yaml#/PostsObject+delete:+ tags:+ - topics+ summary: delete a topic+ description: This operation purges a topic and all of its posts (careful, there is no confirmation!)+ responses:+ '200':+ description: Topic successfully purged+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/follow.yaml b/public/openapi/write/topics/tid/follow.yamlnew file mode 100644index 0000000000..6d3a28d6ad--- /dev/null+++ b/public/openapi/write/topics/tid/follow.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - topics+ summary: follow a topic+ description: This operation follows (or watches) a topic.+ responses:+ '200':+ description: Topic successfully followed+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - topics+ summary: unfollow a topic+ description: This operation unfollows (or unwatches) a topic.+ responses:+ '200':+ description: Topic successfully unwatched+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/ignore.yaml b/public/openapi/write/topics/tid/ignore.yamlnew file mode 100644index 0000000000..8c264ac8dc--- /dev/null+++ b/public/openapi/write/topics/tid/ignore.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - topics+ summary: ignore a topic+ description: This operation ignores (or watches) a topic.+ responses:+ '200':+ description: Topic successfully ignored+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - topics+ summary: unignore a topic+ description: This operation unignores (or unfollows/unwatches) a topic. It is functionally identical to `DEL /topics/{tid}/follow`.+ responses:+ '200':+ description: Topic successfully unignored/unwatched+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/lock.yaml b/public/openapi/write/topics/tid/lock.yamlnew file mode 100644index 0000000000..51ac90c997--- /dev/null+++ b/public/openapi/write/topics/tid/lock.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - topics+ summary: lock a topic+ description: This operation locks an existing topic.+ responses:+ '200':+ description: Topic successfully locked+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - topics+ summary: unlock a topic+ description: This operation unlocks a topic.+ responses:+ '200':+ description: Topic successfully unlocked+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/pin.yaml b/public/openapi/write/topics/tid/pin.yamlnew file mode 100644index 0000000000..d49a315980--- /dev/null+++ b/public/openapi/write/topics/tid/pin.yaml@@ -0,0 +1,36 @@+put:+ tags:+ - topics+ summary: pin a topic+ description: This operation pins an existing topic.+ responses:+ '200':+ description: Topic successfully pinned+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - topics+ summary: unpin a topic+ description: This operation unpins a topic.+ responses:+ '200':+ description: Topic successfully unpinned+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/state.yaml b/public/openapi/write/topics/tid/state.yamlnew file mode 100644index 0000000000..7f147646b9--- /dev/null+++ b/public/openapi/write/topics/tid/state.yaml@@ -0,0 +1,36 @@+delete:+ tags:+ - topics+ summary: delete a topic+ description: This operation deletes an existing topic.+ responses:+ '200':+ description: Topic successfully deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+put:+ tags:+ - topics+ summary: restore a topic+ description: This operation restores a topic.+ responses:+ '200':+ description: Topic successfully restored+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/topics/tid/tags.yaml b/public/openapi/write/topics/tid/tags.yamlnew file mode 100644index 0000000000..c333c50133--- /dev/null+++ b/public/openapi/write/topics/tid/tags.yaml@@ -0,0 +1,52 @@+put:+ tags:+ - topics+ summary: adds tags to a topic+ description: This operation adds tags to a topic+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ tags:+ type: array+ description: 'An array of tags'+ items:+ type: string+ example:+ tags:+ - test+ - foobar+ responses:+ '200':+ description: Topic tags successfully added+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}+delete:+ tags:+ - topics+ summary: Removes all tags from a topic+ description: This operation removed all tags associated with a topic.+ responses:+ '200':+ description: Topic tags successfully removed.+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../../../components/schemas/Status.yaml#/Status+ response:+ type: object+ properties: {}\ No newline at end of filediff --git a/public/openapi/write/users.yaml b/public/openapi/write/users.yamlnew file mode 100644index 0000000000..c21bf89157--- /dev/null+++ b/public/openapi/write/users.yaml@@ -0,0 +1,330 @@+post:+ tags:+ - users+ summary: create a user+ description: This operation creates a new user account+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ username:+ type: string+ description: 'If the username is taken, a number will be appended'+ password:+ type: string+ email:+ type: string+ required:+ - username+ example:+ username: Dragon Fruit+ password: s3cre7password+ email: [email protected]+ responses:+ '200':+ description: user successfully created+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ $ref: ../components/schemas/UserObj.yaml#/UserObj+ '400':+ $ref: ../components/responses/400.yaml#/400+ '401':+ $ref: ../components/responses/401.yaml#/401+ '403':+ $ref: ../components/responses/403.yaml#/403+ '426':+ $ref: ../components/responses/426.yaml#/426+ '500':+ $ref: ../components/responses/500.yaml#/500+delete:+ tags:+ - users+ summary: delete one or more users+ description: This operation deletes one or many user accounts, including their contributions (posts, topics, etc.)+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ uids:+ type: array+ description: A collection of uids+ items:+ type: number+ example:+ uids:+ - 1+ - 2+ - 3+ responses:+ '200':+ description: user account(s) deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ '/users/{uid}':+ delete:+ tags:+ - users+ summary: delete a single user account+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to delete+ responses:+ '200':+ description: user account deleted+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ put:+ tags:+ - users+ summary: update a user account+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to update+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: ../components/schemas/UserRequest.yaml#/UserRequest+ responses:+ '200':+ description: user profile updated+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ $ref: ../components/schemas/UserObj.yaml#/UserObj+ '401':+ $ref: ../components/responses/401.yaml#/401+ '403':+ $ref: ../components/responses/403.yaml#/403+ '426':+ $ref: ../components/responses/426.yaml#/426+ '500':+ $ref: ../components/responses/500.yaml#/500+ '/users/{uid}/password':+ put:+ tags:+ - users+ summary: change a user's password+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to update+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ currentPassword:+ type: string+ description: test+ example: oldp455word+ newPassword:+ type: string+ example: s3cre7password+ required:+ - newPassword+ responses:+ '200':+ description: user profile updated+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ '/users/{uid}/follow':+ post:+ tags:+ - users+ summary: follow a user+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to follow+ responses:+ '200':+ description: successfully followed user+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ delete:+ tags:+ - users+ summary: unfollows a user+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to unfollow+ responses:+ '200':+ description: successfully unfollowed user+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ '/users/{uid}/ban':+ put:+ tags:+ - users+ summary: ban a user+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to ban+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ until:+ type: number+ description: UNIX timestamp of the ban expiry+ example: 1585775608076+ reason:+ type: string+ example: the reason for the ban+ responses:+ '200':+ description: successfully banned user+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ delete:+ tags:+ - users+ summary: unbans a user+ parameters:+ - in: path+ name: uid+ schema:+ type: integer+ required: true+ description: uid of the user to unban+ responses:+ '200':+ description: successfully unbanned user+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ '/users/{uid}/tokens':+ post:+ tags:+ - users+ summary: generate a user token+ description: This route can only be used to generate tokens for the same user. In other words, you cannot use this route to generate a token for a different user than the one you are authenticated as.+ responses:+ '200':+ description: successfully generated a user token+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object+ delete:+ tags:+ - users+ summary: delete user token+ parameters:+ - in: path+ name: token+ schema:+ type: string+ required: true+ description: a valid API token+ responses:+ '200':+ description: successfully deleted user token+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ $ref: ../components/schemas/Status.yaml#/Status+ response:+ type: object\ No newline at end of file