Node.js based forum software built for the modern web
fix(writeapi): added examples to all parameter objects in schema
Julian Lam93f65f89e7e2
diff --git a/public/openapi/write/admin/settings/setting.yaml b/public/openapi/write/admin/settings/setting.yamlindex 3b1aeecde0..a0de3e0644 100644--- a/public/openapi/write/admin/settings/setting.yaml+++ b/public/openapi/write/admin/settings/setting.yaml@@ -10,6 +10,7 @@ put:type: stringrequired: truedescription: backend id of the setting to update+ example: maximumRelatedTopicsresponses:'200':description: Admin setting updateddiff --git a/public/openapi/write/groups/slug/membership/uid.yaml b/public/openapi/write/groups/slug/membership/uid.yamlindex fd7222a3a0..43bbb0968d 100644--- a/public/openapi/write/groups/slug/membership/uid.yaml+++ b/public/openapi/write/groups/slug/membership/uid.yaml@@ -3,6 +3,14 @@ put:- groupssummary: join a groupdescription: 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}`.+ parameters:+ - in: path+ name: slug+ schema:+ type: string+ required: true+ description: slug of the group you would like to join+ example: my-groupresponses:'200':description: group successfully joined, or membership requesteddiff --git a/public/openapi/write/posts/pid.yaml b/public/openapi/write/posts/pid.yamlindex 0942b10bd4..bc0f531671 100644--- a/public/openapi/write/posts/pid.yaml+++ b/public/openapi/write/posts/pid.yaml@@ -3,6 +3,14 @@ put:- postssummary: edit a postdescription: This operation edits a post+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1requestBody:required: truecontent:@@ -38,6 +46,14 @@ delete:- postssummary: purge a postdescription: This operation purges a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1responses:'200':description: Post successfully purgeddiff --git a/public/openapi/write/posts/pid/bookmark.yaml b/public/openapi/write/posts/pid/bookmark.yamlindex 66421a5111..fe57ccf89b 100644--- a/public/openapi/write/posts/pid/bookmark.yaml+++ b/public/openapi/write/posts/pid/bookmark.yaml@@ -3,6 +3,14 @@ put:- postssummary: bookmark a postdescription: This operation bookmarks a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1responses:'200':description: Post successfully bookmarked@@ -21,6 +29,14 @@ delete:- postssummary: unbookmark a postdescription: This operation unbookmarks a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1responses:'200':description: Post successfully unbookmarkeddiff --git a/public/openapi/write/posts/pid/state.yaml b/public/openapi/write/posts/pid/state.yamlindex c2f958d94e..f9e9ce8c12 100644--- a/public/openapi/write/posts/pid/state.yaml+++ b/public/openapi/write/posts/pid/state.yaml@@ -3,6 +3,14 @@ put:- postssummary: restore a postdescription: This operation restores a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1responses:'200':description: Topic successfully restored@@ -21,6 +29,14 @@ delete:- postssummary: deletes a postdescription: This operation soft deletes a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1responses:'200':description: Post successfully deleteddiff --git a/public/openapi/write/posts/pid/vote.yaml b/public/openapi/write/posts/pid/vote.yamlindex e93dd6f149..5d2fd6c2f3 100644--- a/public/openapi/write/posts/pid/vote.yaml+++ b/public/openapi/write/posts/pid/vote.yaml@@ -3,6 +3,14 @@ put:- postssummary: vote on a postdescription: This operation casts a vote on a post.+ parameters:+ - in: path+ name: pid+ schema:+ type: string+ required: true+ description: a valid post id+ example: 1requestBody:required: truecontent:diff --git a/public/openapi/write/topics/tid.yaml b/public/openapi/write/topics/tid.yamlindex 692bfd51aa..d4b6a801e3 100644--- a/public/openapi/write/topics/tid.yaml+++ b/public/openapi/write/topics/tid.yaml@@ -3,6 +3,14 @@ post:- topicssummary: peply to a topicdescription: This operation creates a new reply to an existing topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1requestBody:required: truecontent:@@ -37,6 +45,14 @@ delete:- topicssummary: delete a topicdescription: This operation purges a topic and all of its posts (careful, there is no confirmation!)+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully purgeddiff --git a/public/openapi/write/topics/tid/follow.yaml b/public/openapi/write/topics/tid/follow.yamlindex 6d3a28d6ad..eada4d56bc 100644--- a/public/openapi/write/topics/tid/follow.yaml+++ b/public/openapi/write/topics/tid/follow.yaml@@ -3,6 +3,14 @@ put:- topicssummary: follow a topicdescription: This operation follows (or watches) a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully followed@@ -21,6 +29,14 @@ delete:- topicssummary: unfollow a topicdescription: This operation unfollows (or unwatches) a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully unwatcheddiff --git a/public/openapi/write/topics/tid/ignore.yaml b/public/openapi/write/topics/tid/ignore.yamlindex 8c264ac8dc..321c995c90 100644--- a/public/openapi/write/topics/tid/ignore.yaml+++ b/public/openapi/write/topics/tid/ignore.yaml@@ -3,6 +3,14 @@ put:- topicssummary: ignore a topicdescription: This operation ignores (or watches) a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully ignored@@ -21,6 +29,14 @@ delete:- topicssummary: unignore a topicdescription: This operation unignores (or unfollows/unwatches) a topic. It is functionally identical to `DEL /topics/{tid}/follow`.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully unignored/unwatcheddiff --git a/public/openapi/write/topics/tid/lock.yaml b/public/openapi/write/topics/tid/lock.yamlindex 51ac90c997..224d0b8d50 100644--- a/public/openapi/write/topics/tid/lock.yaml+++ b/public/openapi/write/topics/tid/lock.yaml@@ -3,6 +3,14 @@ put:- topicssummary: lock a topicdescription: This operation locks an existing topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully locked@@ -21,6 +29,14 @@ delete:- topicssummary: unlock a topicdescription: This operation unlocks a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully unlockeddiff --git a/public/openapi/write/topics/tid/pin.yaml b/public/openapi/write/topics/tid/pin.yamlindex d49a315980..b3f2d580ae 100644--- a/public/openapi/write/topics/tid/pin.yaml+++ b/public/openapi/write/topics/tid/pin.yaml@@ -3,6 +3,14 @@ put:- topicssummary: pin a topicdescription: This operation pins an existing topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully pinned@@ -21,6 +29,14 @@ delete:- topicssummary: unpin a topicdescription: This operation unpins a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully unpinneddiff --git a/public/openapi/write/topics/tid/state.yaml b/public/openapi/write/topics/tid/state.yamlindex 7f147646b9..a82348953c 100644--- a/public/openapi/write/topics/tid/state.yaml+++ b/public/openapi/write/topics/tid/state.yaml@@ -3,6 +3,14 @@ delete:- topicssummary: delete a topicdescription: This operation deletes an existing topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully deleted@@ -21,6 +29,14 @@ put:- topicssummary: restore a topicdescription: This operation restores a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic successfully restoreddiff --git a/public/openapi/write/topics/tid/tags.yaml b/public/openapi/write/topics/tid/tags.yamlindex c333c50133..8f8624959e 100644--- a/public/openapi/write/topics/tid/tags.yaml+++ b/public/openapi/write/topics/tid/tags.yaml@@ -3,6 +3,14 @@ put:- topicssummary: adds tags to a topicdescription: This operation adds tags to a topic+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1requestBody:required: truecontent:@@ -37,6 +45,14 @@ delete:- topicssummary: Removes all tags from a topicdescription: This operation removed all tags associated with a topic.+ parameters:+ - in: path+ name: tid+ schema:+ type: string+ required: true+ description: a valid topic id+ example: 1responses:'200':description: Topic tags successfully removed.diff --git a/public/openapi/write/users/uid.yaml b/public/openapi/write/users/uid.yamlindex 48230dd245..7f46b0e37a 100644--- a/public/openapi/write/users/uid.yaml+++ b/public/openapi/write/users/uid.yaml@@ -9,6 +9,7 @@ delete:type: integerrequired: truedescription: uid of the user to delete+ example: 1responses:'200':description: user account deleted@@ -32,6 +33,7 @@ put:type: integerrequired: truedescription: uid of the user to update+ example: 1requestBody:required: truecontent:diff --git a/public/openapi/write/users/uid/ban.yaml b/public/openapi/write/users/uid/ban.yamlindex 82ae1d023b..3532e28bbf 100644--- a/public/openapi/write/users/uid/ban.yaml+++ b/public/openapi/write/users/uid/ban.yaml@@ -9,6 +9,7 @@ put:type: integerrequired: truedescription: uid of the user to ban+ example: 1requestBody:content:application/json:@@ -45,6 +46,7 @@ delete:type: integerrequired: truedescription: uid of the user to unban+ example: 1responses:'200':description: successfully unbanned userdiff --git a/public/openapi/write/users/uid/follow.yaml b/public/openapi/write/users/uid/follow.yamlindex f275af46d7..acdff6a09e 100644--- a/public/openapi/write/users/uid/follow.yaml+++ b/public/openapi/write/users/uid/follow.yaml@@ -9,6 +9,7 @@ post:type: integerrequired: truedescription: uid of the user to follow+ example: 1responses:'200':description: successfully followed user@@ -32,6 +33,7 @@ delete:type: integerrequired: truedescription: uid of the user to unfollow+ example: 1responses:'200':description: successfully unfollowed userdiff --git a/public/openapi/write/users/uid/password.yaml b/public/openapi/write/users/uid/password.yamlindex e127437420..a58ada8238 100644--- a/public/openapi/write/users/uid/password.yaml+++ b/public/openapi/write/users/uid/password.yaml@@ -9,6 +9,7 @@ put:type: integerrequired: truedescription: uid of the user to update+ example: 1requestBody:required: truecontent:diff --git a/public/openapi/write/users/uid/settings.yaml b/public/openapi/write/users/uid/settings.yamlindex 193f56f8a0..2da70faba6 100644--- a/public/openapi/write/users/uid/settings.yaml+++ b/public/openapi/write/users/uid/settings.yaml@@ -9,6 +9,7 @@ put:type: integerrequired: truedescription: uid of the user+ example: 1requestBody:content:application/json:diff --git a/public/openapi/write/users/uid/tokens.yaml b/public/openapi/write/users/uid/tokens.yamlindex 9400a17b18..35be1af348 100644--- a/public/openapi/write/users/uid/tokens.yaml+++ b/public/openapi/write/users/uid/tokens.yaml@@ -26,6 +26,7 @@ delete:type: stringrequired: truedescription: a valid API token+ example: 6d03a630-86fd-4515-9a35-e957502f4f89responses:'200':description: successfully deleted user token