better authorization handling

This commit is contained in:
Michael Quigley
2022-08-01 15:44:26 -04:00
parent 9e0caf192b
commit 069417ade0
8 changed files with 274 additions and 56 deletions

View File

@@ -131,6 +131,12 @@ func init() {
"$ref": "#/definitions/tunnelResponse"
}
},
"401": {
"description": "invalid environment identity",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error",
"schema": {
@@ -164,6 +170,12 @@ func init() {
"200": {
"description": "tunnel removed"
},
"404": {
"description": "not found",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error",
"schema": {
@@ -391,6 +403,12 @@ func init() {
"$ref": "#/definitions/tunnelResponse"
}
},
"401": {
"description": "invalid environment identity",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error",
"schema": {
@@ -424,6 +442,12 @@ func init() {
"200": {
"description": "tunnel removed"
},
"404": {
"description": "not found",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error",
"schema": {