Add '401 unauthorized' to api docs

This commit is contained in:
Christoph Kluge
2022-09-21 17:13:55 +02:00
parent 872bc77708
commit 93713edcac
4 changed files with 86 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
// Package api GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2022-09-21 16:59:20.417950914 +0200 CEST m=+0.112710428
// 2022-09-21 17:13:02.799543712 +0200 CEST m=+0.123569150
package api
import "github.com/swaggo/swag"
@@ -103,6 +103,12 @@ const docTemplate = `{
"$ref": "#/definitions/api.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
@@ -151,6 +157,12 @@ const docTemplate = `{
"$ref": "#/definitions/api.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.ErrorResponse"
}
},
"403": {
"description": "Forbidden",
"schema": {
@@ -208,6 +220,12 @@ const docTemplate = `{
"$ref": "#/definitions/api.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.ErrorResponse"
}
},
"403": {
"description": "Forbidden",
"schema": {
@@ -281,6 +299,12 @@ const docTemplate = `{
"$ref": "#/definitions/api.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.ErrorResponse"
}
},
"403": {
"description": "Forbidden",
"schema": {
@@ -357,6 +381,12 @@ const docTemplate = `{
"$ref": "#/definitions/api.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/api.ErrorResponse"
}
},
"404": {
"description": "Job or tag does not exist",
"schema": {