diff options
Diffstat (limited to 'internal/api/client/status/statusunboost.go')
-rw-r--r-- | internal/api/client/status/statusunboost.go | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/internal/api/client/status/statusunboost.go b/internal/api/client/status/statusunboost.go index b3e921bb7..45a8e0ece 100644 --- a/internal/api/client/status/statusunboost.go +++ b/internal/api/client/status/statusunboost.go @@ -32,42 +32,43 @@ import ( // // Unreblog/unboost status with the given ID. // -// --- -// tags: -// - statuses +// --- +// tags: +// - statuses // -// produces: -// - application/json +// produces: +// - application/json // -// parameters: -// - name: id -// type: string -// description: Target status ID. -// in: path -// required: true +// parameters: +// - +// name: id +// type: string +// description: Target status ID. +// in: path +// required: true // -// security: -// - OAuth2 Bearer: -// - write:statuses +// security: +// - OAuth2 Bearer: +// - write:statuses // -// responses: -// '200': -// name: status -// description: The unboosted status. -// schema: -// "$ref": "#/definitions/status" -// '400': -// description: bad request -// '401': -// description: unauthorized -// '403': -// description: forbidden -// '404': -// description: not found -// '406': -// description: not acceptable -// '500': -// description: internal server error +// responses: +// '200': +// name: status +// description: The unboosted status. +// schema: +// "$ref": "#/definitions/status" +// '400': +// description: bad request +// '401': +// description: unauthorized +// '403': +// description: forbidden +// '404': +// description: not found +// '406': +// description: not acceptable +// '500': +// description: internal server error func (m *Module) StatusUnboostPOSTHandler(c *gin.Context) { authed, err := oauth.Authed(c, true, true, true, true) if err != nil { |