api improvements

This commit is contained in:
Michael Quigley
2022-07-27 13:38:35 -04:00
parent d44ebb9e80
commit 4311d89526
17 changed files with 284 additions and 75 deletions

View File

@@ -57,10 +57,16 @@ func init() {
}
},
"400": {
"description": "account not created (already exists)"
"description": "account not created (already exists)",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -91,7 +97,10 @@ func init() {
"description": "account not found"
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -119,7 +128,10 @@ func init() {
}
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -144,7 +156,10 @@ func init() {
"description": "tunnel removed"
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -205,6 +220,9 @@ func init() {
}
}
},
"errorMessage": {
"type": "string"
},
"tunnelRequest": {
"type": "object",
"properties": {
@@ -282,10 +300,16 @@ func init() {
}
},
"400": {
"description": "account not created (already exists)"
"description": "account not created (already exists)",
"schema": {
"$ref": "#/definitions/errorMessage"
}
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -316,7 +340,10 @@ func init() {
"description": "account not found"
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -344,7 +371,10 @@ func init() {
}
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -369,7 +399,10 @@ func init() {
"description": "tunnel removed"
},
"500": {
"description": "internal server error"
"description": "internal server error",
"schema": {
"$ref": "#/definitions/errorMessage"
}
}
}
}
@@ -430,6 +463,9 @@ func init() {
}
}
},
"errorMessage": {
"type": "string"
},
"tunnelRequest": {
"type": "object",
"properties": {