diff options
Diffstat (limited to 'internal/api/client/exports')
| -rw-r--r-- | internal/api/client/exports/blocks.go | 6 | ||||
| -rw-r--r-- | internal/api/client/exports/followers.go | 6 | ||||
| -rw-r--r-- | internal/api/client/exports/following.go | 6 | ||||
| -rw-r--r-- | internal/api/client/exports/lists.go | 6 | ||||
| -rw-r--r-- | internal/api/client/exports/mutes.go | 6 | ||||
| -rw-r--r-- | internal/api/client/exports/stats.go | 6 |
6 files changed, 36 insertions, 0 deletions
diff --git a/internal/api/client/exports/blocks.go b/internal/api/client/exports/blocks.go index fae8a201b..614073971 100644 --- a/internal/api/client/exports/blocks.go +++ b/internal/api/client/exports/blocks.go @@ -45,10 +45,16 @@ import ( // name: accounts // description: CSV file of accounts that you block. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportBlocksGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/exports/followers.go b/internal/api/client/exports/followers.go index 520fbef70..7a5ce075d 100644 --- a/internal/api/client/exports/followers.go +++ b/internal/api/client/exports/followers.go @@ -45,10 +45,16 @@ import ( // name: accounts // description: CSV file of accounts that follow you. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportFollowersGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/exports/following.go b/internal/api/client/exports/following.go index 8d6306092..e7fb908fb 100644 --- a/internal/api/client/exports/following.go +++ b/internal/api/client/exports/following.go @@ -45,10 +45,16 @@ import ( // name: accounts // description: CSV file of accounts that you follow. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportFollowingGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/exports/lists.go b/internal/api/client/exports/lists.go index cf152bf55..ccd4b9012 100644 --- a/internal/api/client/exports/lists.go +++ b/internal/api/client/exports/lists.go @@ -45,10 +45,16 @@ import ( // name: accounts // description: CSV file of lists. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportListsGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/exports/mutes.go b/internal/api/client/exports/mutes.go index 0db94db62..66550950e 100644 --- a/internal/api/client/exports/mutes.go +++ b/internal/api/client/exports/mutes.go @@ -45,10 +45,16 @@ import ( // name: accounts // description: CSV file of accounts that you mute. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportMutesGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/exports/stats.go b/internal/api/client/exports/stats.go index 6b9436065..3eccfb644 100644 --- a/internal/api/client/exports/stats.go +++ b/internal/api/client/exports/stats.go @@ -46,10 +46,16 @@ import ( // schema: // "$ref": "#/definitions/accountExportStats" // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '406': +// schema: +// "$ref": "#/definitions/error" // description: not acceptable // '500': +// schema: +// "$ref": "#/definitions/error" // description: internal server error func (m *Module) ExportStatsGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, |
