update frontend backend (#129)

This commit is contained in:
Michael Quigley
2022-12-02 10:46:53 -05:00
parent 9ab7eeebf3
commit 38c83fda92
18 changed files with 1125 additions and 21 deletions

View File

@ -217,6 +217,40 @@ func init() {
"description": "internal server error"
}
}
},
"patch": {
"security": [
{
"key": []
}
],
"tags": [
"admin"
],
"operationId": "updateFrontend",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/updateFrontendRequest"
}
}
],
"responses": {
"200": {
"description": "frontend updated"
},
"401": {
"description": "unauthorized"
},
"404": {
"description": "not found"
},
"500": {
"description": "internal server error"
}
}
}
},
"/frontends": {
@ -746,19 +780,19 @@ func init() {
"publicFrontend": {
"type": "object",
"properties": {
"created_at": {
"createdAt": {
"type": "integer"
},
"public_name": {
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updated_at": {
"updatedAt": {
"type": "integer"
},
"url_template": {
"urlTemplate": {
"type": "string"
},
"zId": {
@ -935,6 +969,20 @@ func init() {
}
}
},
"updateFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
},
"verifyRequest": {
"type": "object",
"properties": {
@ -1163,6 +1211,40 @@ func init() {
"description": "internal server error"
}
}
},
"patch": {
"security": [
{
"key": []
}
],
"tags": [
"admin"
],
"operationId": "updateFrontend",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/updateFrontendRequest"
}
}
],
"responses": {
"200": {
"description": "frontend updated"
},
"401": {
"description": "unauthorized"
},
"404": {
"description": "not found"
},
"500": {
"description": "internal server error"
}
}
}
},
"/frontends": {
@ -1692,19 +1774,19 @@ func init() {
"publicFrontend": {
"type": "object",
"properties": {
"created_at": {
"createdAt": {
"type": "integer"
},
"public_name": {
"publicName": {
"type": "string"
},
"token": {
"type": "string"
},
"updated_at": {
"updatedAt": {
"type": "integer"
},
"url_template": {
"urlTemplate": {
"type": "string"
},
"zId": {
@ -1881,6 +1963,20 @@ func init() {
}
}
},
"updateFrontendRequest": {
"type": "object",
"properties": {
"frontendToken": {
"type": "string"
},
"publicName": {
"type": "string"
},
"urlTemplate": {
"type": "string"
}
}
},
"verifyRequest": {
"type": "object",
"properties": {