diff options
Diffstat (limited to 'internal/api/client/followrequests')
| -rw-r--r-- | internal/api/client/followrequests/authorize.go | 10 | ||||
| -rw-r--r-- | internal/api/client/followrequests/get.go | 10 | ||||
| -rw-r--r-- | internal/api/client/followrequests/getoutgoing.go | 10 | ||||
| -rw-r--r-- | internal/api/client/followrequests/reject.go | 10 |
4 files changed, 40 insertions, 0 deletions
diff --git a/internal/api/client/followrequests/authorize.go b/internal/api/client/followrequests/authorize.go index bcaad9be6..3fb6d6186 100644 --- a/internal/api/client/followrequests/authorize.go +++ b/internal/api/client/followrequests/authorize.go @@ -58,14 +58,24 @@ import ( // schema: // "$ref": "#/definitions/accountRelationship" // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '404': +// schema: +// "$ref": "#/definitions/error" // description: not found // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) FollowRequestAuthorizePOSTHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/followrequests/get.go b/internal/api/client/followrequests/get.go index a55ea3ab2..95ecae837 100644 --- a/internal/api/client/followrequests/get.go +++ b/internal/api/client/followrequests/get.go @@ -97,14 +97,24 @@ import ( // items: // "$ref": "#/definitions/account" // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '404': +// schema: +// "$ref": "#/definitions/error" // description: not found // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) FollowRequestGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/followrequests/getoutgoing.go b/internal/api/client/followrequests/getoutgoing.go index 4da6dfad8..37043e3b9 100644 --- a/internal/api/client/followrequests/getoutgoing.go +++ b/internal/api/client/followrequests/getoutgoing.go @@ -97,14 +97,24 @@ import ( // items: // "$ref": "#/definitions/account" // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '404': +// schema: +// "$ref": "#/definitions/error" // description: not found // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) OutgoingFollowRequestGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/followrequests/reject.go b/internal/api/client/followrequests/reject.go index d60a1af08..072e5cd6b 100644 --- a/internal/api/client/followrequests/reject.go +++ b/internal/api/client/followrequests/reject.go @@ -56,14 +56,24 @@ import ( // schema: // "$ref": "#/definitions/accountRelationship" // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '404': +// schema: +// "$ref": "#/definitions/error" // description: not found // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) FollowRequestRejectPOSTHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, |
