summaryrefslogtreecommitdiff
path: root/internal/api/client/filters
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/filters')
-rw-r--r--internal/api/client/filters/v1/filterdelete.go10
-rw-r--r--internal/api/client/filters/v1/filterget.go10
-rw-r--r--internal/api/client/filters/v1/filterpost.go16
-rw-r--r--internal/api/client/filters/v1/filterput.go16
-rw-r--r--internal/api/client/filters/v1/filtersget.go10
-rw-r--r--internal/api/client/filters/v2/filterdelete.go10
-rw-r--r--internal/api/client/filters/v2/filterget.go10
-rw-r--r--internal/api/client/filters/v2/filterkeyworddelete.go10
-rw-r--r--internal/api/client/filters/v2/filterkeywordget.go10
-rw-r--r--internal/api/client/filters/v2/filterkeywordpost.go16
-rw-r--r--internal/api/client/filters/v2/filterkeywordput.go16
-rw-r--r--internal/api/client/filters/v2/filterkeywordsget.go10
-rw-r--r--internal/api/client/filters/v2/filterpost.go16
-rw-r--r--internal/api/client/filters/v2/filterput.go16
-rw-r--r--internal/api/client/filters/v2/filtersget.go10
-rw-r--r--internal/api/client/filters/v2/filterstatusdelete.go10
-rw-r--r--internal/api/client/filters/v2/filterstatusesget.go10
-rw-r--r--internal/api/client/filters/v2/filterstatusget.go10
-rw-r--r--internal/api/client/filters/v2/filterstatuspost.go16
19 files changed, 232 insertions, 0 deletions
diff --git a/internal/api/client/filters/v1/filterdelete.go b/internal/api/client/filters/v1/filterdelete.go
index 5283240c5..4e171bbaf 100644
--- a/internal/api/client/filters/v1/filterdelete.go
+++ b/internal/api/client/filters/v1/filterdelete.go
@@ -52,14 +52,24 @@ import (
// '200':
// description: filter deleted
// '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) FilterDELETEHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v1/filterget.go b/internal/api/client/filters/v1/filterget.go
index 704be540a..ffe2a300b 100644
--- a/internal/api/client/filters/v1/filterget.go
+++ b/internal/api/client/filters/v1/filterget.go
@@ -55,14 +55,24 @@ import (
// schema:
// "$ref": "#/definitions/filterV1"
// '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) FilterGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v1/filterpost.go b/internal/api/client/filters/v1/filterpost.go
index d61ddbdb8..5840fea44 100644
--- a/internal/api/client/filters/v1/filterpost.go
+++ b/internal/api/client/filters/v1/filterpost.go
@@ -113,20 +113,36 @@ import (
// schema:
// "$ref": "#/definitions/filterV1"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate keyword)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v1/filterput.go b/internal/api/client/filters/v1/filterput.go
index ab08f0d92..64c1711fe 100644
--- a/internal/api/client/filters/v1/filterput.go
+++ b/internal/api/client/filters/v1/filterput.go
@@ -119,20 +119,36 @@ import (
// schema:
// "$ref": "#/definitions/filterV1"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate keyword)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterPUTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v1/filtersget.go b/internal/api/client/filters/v1/filtersget.go
index 42a7c3b7e..c5ba0e9cd 100644
--- a/internal/api/client/filters/v1/filtersget.go
+++ b/internal/api/client/filters/v1/filtersget.go
@@ -49,14 +49,24 @@ import (
// items:
// "$ref": "#/definitions/filterV1"
// '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) FiltersGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterdelete.go b/internal/api/client/filters/v2/filterdelete.go
index 4ede393de..3631f2983 100644
--- a/internal/api/client/filters/v2/filterdelete.go
+++ b/internal/api/client/filters/v2/filterdelete.go
@@ -52,14 +52,24 @@ import (
// '200':
// description: filter deleted
// '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) FilterDELETEHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterget.go b/internal/api/client/filters/v2/filterget.go
index 21ac6a2ca..df01000cf 100644
--- a/internal/api/client/filters/v2/filterget.go
+++ b/internal/api/client/filters/v2/filterget.go
@@ -55,14 +55,24 @@ import (
// schema:
// "$ref": "#/definitions/filterV2"
// '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) FilterGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterkeyworddelete.go b/internal/api/client/filters/v2/filterkeyworddelete.go
index 63c235d16..4ad936907 100644
--- a/internal/api/client/filters/v2/filterkeyworddelete.go
+++ b/internal/api/client/filters/v2/filterkeyworddelete.go
@@ -52,14 +52,24 @@ import (
// '200':
// description: filter keyword deleted
// '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) FilterKeywordDELETEHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterkeywordget.go b/internal/api/client/filters/v2/filterkeywordget.go
index e8e4dec0c..af3d12466 100644
--- a/internal/api/client/filters/v2/filterkeywordget.go
+++ b/internal/api/client/filters/v2/filterkeywordget.go
@@ -55,14 +55,24 @@ import (
// schema:
// "$ref": "#/definitions/filterKeyword"
// '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) FilterKeywordGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterkeywordpost.go b/internal/api/client/filters/v2/filterkeywordpost.go
index 1068f78f8..f3eb31502 100644
--- a/internal/api/client/filters/v2/filterkeywordpost.go
+++ b/internal/api/client/filters/v2/filterkeywordpost.go
@@ -83,20 +83,36 @@ import (
// schema:
// "$ref": "#/definitions/filterKeyword"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate keyword)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterKeywordPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterkeywordput.go b/internal/api/client/filters/v2/filterkeywordput.go
index dae3a0042..75c904fc7 100644
--- a/internal/api/client/filters/v2/filterkeywordput.go
+++ b/internal/api/client/filters/v2/filterkeywordput.go
@@ -80,20 +80,36 @@ import (
// schema:
// "$ref": "#/definitions/filterKeyword"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate keyword)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterKeywordPUTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterkeywordsget.go b/internal/api/client/filters/v2/filterkeywordsget.go
index 3bfe81bc6..c2e6ecef2 100644
--- a/internal/api/client/filters/v2/filterkeywordsget.go
+++ b/internal/api/client/filters/v2/filterkeywordsget.go
@@ -57,14 +57,24 @@ import (
// items:
// "$ref": "#/definitions/filterKeyword"
// '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) FilterKeywordsGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterpost.go b/internal/api/client/filters/v2/filterpost.go
index c2473557a..7cb11da92 100644
--- a/internal/api/client/filters/v2/filterpost.go
+++ b/internal/api/client/filters/v2/filterpost.go
@@ -133,20 +133,36 @@ import (
// schema:
// "$ref": "#/definitions/filterV2"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate title, keyword, or status)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go
index 689c47e5b..4538fa3bf 100644
--- a/internal/api/client/filters/v2/filterput.go
+++ b/internal/api/client/filters/v2/filterput.go
@@ -141,20 +141,36 @@ import (
// schema:
// "$ref": "#/definitions/filterV2"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate title, keyword, or status)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterPUTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filtersget.go b/internal/api/client/filters/v2/filtersget.go
index 94e1db03b..d6d0856ee 100644
--- a/internal/api/client/filters/v2/filtersget.go
+++ b/internal/api/client/filters/v2/filtersget.go
@@ -49,14 +49,24 @@ import (
// items:
// "$ref": "#/definitions/filterV2"
// '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) FiltersGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterstatusdelete.go b/internal/api/client/filters/v2/filterstatusdelete.go
index 8522fde06..e4a818e49 100644
--- a/internal/api/client/filters/v2/filterstatusdelete.go
+++ b/internal/api/client/filters/v2/filterstatusdelete.go
@@ -52,14 +52,24 @@ import (
// '200':
// description: filter status deleted
// '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) FilterStatusDELETEHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterstatusesget.go b/internal/api/client/filters/v2/filterstatusesget.go
index 31616bd36..91ec7f46f 100644
--- a/internal/api/client/filters/v2/filterstatusesget.go
+++ b/internal/api/client/filters/v2/filterstatusesget.go
@@ -57,14 +57,24 @@ import (
// items:
// "$ref": "#/definitions/filterStatus"
// '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) FilterStatusesGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterstatusget.go b/internal/api/client/filters/v2/filterstatusget.go
index 3add79c26..53410d4e9 100644
--- a/internal/api/client/filters/v2/filterstatusget.go
+++ b/internal/api/client/filters/v2/filterstatusget.go
@@ -55,14 +55,24 @@ import (
// schema:
// "$ref": "#/definitions/filterStatus"
// '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) FilterStatusGETHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,
diff --git a/internal/api/client/filters/v2/filterstatuspost.go b/internal/api/client/filters/v2/filterstatuspost.go
index b7b6019ac..22ea8b075 100644
--- a/internal/api/client/filters/v2/filterstatuspost.go
+++ b/internal/api/client/filters/v2/filterstatuspost.go
@@ -71,20 +71,36 @@ import (
// schema:
// "$ref": "#/definitions/filterStatus"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden to moved accounts
// '404':
+// schema:
+// "$ref": "#/definitions/error"
// description: not found
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '409':
+// schema:
+// "$ref": "#/definitions/error"
// description: conflict (duplicate status)
// '422':
+// schema:
+// "$ref": "#/definitions/error"
// description: unprocessable content
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) FilterStatusPOSTHandler(c *gin.Context) {
authed, errWithCode := apiutil.TokenAuth(c,