admin endpoints polish and lint removal (#834)

This commit is contained in:
Michael Quigley
2025-02-03 13:10:13 -05:00
parent 14d03b88f7
commit 62d8086aed
46 changed files with 2224 additions and 456 deletions

View File

@ -415,7 +415,25 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/createFrontendRequest"
"type": "object",
"properties": {
"permissionMode": {
"type": "string",
"enum": [
"open",
"closed"
]
},
"public_name": {
"type": "string"
},
"url_template": {
"type": "string"
},
"zId": {
"type": "string"
}
}
}
}
],
@ -423,7 +441,12 @@ func init() {
"201": {
"description": "frontend created",
"schema": {
"$ref": "#/definitions/createFrontendResponse"
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
}
},
"400": {
@ -455,7 +478,12 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/deleteFrontendRequest"
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
}
}
}
}
],
@ -489,7 +517,18 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/updateFrontendRequest"
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
}
}
],
@ -524,7 +563,30 @@ func init() {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/publicFrontendList"
"type": "array",
"items": {
"type": "object",
"properties": {
"createdAt": {
"type": "integer"
},
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updatedAt": {
"type": "integer"
},
"urlTemplate": {
"type": "string"
},
"zId": {
"type": "string"
}
}
}
}
},
"401": {
@ -1779,43 +1841,6 @@ func init() {
}
}
},
"createFrontendRequest": {
"type": "object",
"properties": {
"permissionMode": {
"type": "string",
"enum": [
"open",
"closed"
]
},
"public_name": {
"type": "string"
},
"url_template": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"createFrontendResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"deleteFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
}
}
},
"disableRequest": {
"type": "object",
"properties": {
@ -2026,35 +2051,6 @@ func init() {
}
}
},
"publicFrontend": {
"type": "object",
"properties": {
"createdAt": {
"type": "integer"
},
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updatedAt": {
"type": "integer"
},
"urlTemplate": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"publicFrontendList": {
"type": "array",
"items": {
"$ref": "#/definitions/publicFrontend"
}
},
"share": {
"type": "object",
"properties": {
@ -2242,20 +2238,6 @@ func init() {
}
}
},
"updateFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
},
"updateShareRequest": {
"type": "object",
"properties": {
@ -2689,7 +2671,25 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/createFrontendRequest"
"type": "object",
"properties": {
"permissionMode": {
"type": "string",
"enum": [
"open",
"closed"
]
},
"public_name": {
"type": "string"
},
"url_template": {
"type": "string"
},
"zId": {
"type": "string"
}
}
}
}
],
@ -2697,7 +2697,12 @@ func init() {
"201": {
"description": "frontend created",
"schema": {
"$ref": "#/definitions/createFrontendResponse"
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
}
},
"400": {
@ -2729,7 +2734,12 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/deleteFrontendRequest"
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
}
}
}
}
],
@ -2763,7 +2773,18 @@ func init() {
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/updateFrontendRequest"
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
}
}
],
@ -2798,7 +2819,10 @@ func init() {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/publicFrontendList"
"type": "array",
"items": {
"$ref": "#/definitions/ListFrontendsOKBodyItems0"
}
}
},
"401": {
@ -3966,6 +3990,29 @@ func init() {
}
},
"definitions": {
"ListFrontendsOKBodyItems0": {
"type": "object",
"properties": {
"createdAt": {
"type": "integer"
},
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updatedAt": {
"type": "integer"
},
"urlTemplate": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"MembersItems0": {
"properties": {
"admin": {
@ -4055,43 +4102,6 @@ func init() {
}
}
},
"createFrontendRequest": {
"type": "object",
"properties": {
"permissionMode": {
"type": "string",
"enum": [
"open",
"closed"
]
},
"public_name": {
"type": "string"
},
"url_template": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"createFrontendResponse": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
},
"deleteFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
}
}
},
"disableRequest": {
"type": "object",
"properties": {
@ -4302,35 +4312,6 @@ func init() {
}
}
},
"publicFrontend": {
"type": "object",
"properties": {
"createdAt": {
"type": "integer"
},
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updatedAt": {
"type": "integer"
},
"urlTemplate": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"publicFrontendList": {
"type": "array",
"items": {
"$ref": "#/definitions/publicFrontend"
}
},
"share": {
"type": "object",
"properties": {
@ -4518,20 +4499,6 @@ func init() {
}
}
},
"updateFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
},
"updateShareRequest": {
"type": "object",
"properties": {