Create deploy token on site creation

This commit is contained in:
2026-04-03 10:21:29 +02:00
parent 78b84a33b8
commit 1aba69cfb5
6 changed files with 94 additions and 5 deletions
+12 -1
View File
@@ -573,7 +573,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.Site"
"$ref": "#/definitions/models.CreateSiteResponse"
}
},
"400": {
@@ -943,6 +943,17 @@ const docTemplate = `{
}
}
},
"models.CreateSiteResponse": {
"type": "object",
"properties": {
"raw_deploy_token": {
"type": "string"
},
"site": {
"$ref": "#/definitions/models.Site"
}
}
},
"models.CustomHeaders": {
"type": "object",
"properties": {
+12 -1
View File
@@ -567,7 +567,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/models.Site"
"$ref": "#/definitions/models.CreateSiteResponse"
}
},
"400": {
@@ -937,6 +937,17 @@
}
}
},
"models.CreateSiteResponse": {
"type": "object",
"properties": {
"raw_deploy_token": {
"type": "string"
},
"site": {
"$ref": "#/definitions/models.Site"
}
}
},
"models.CustomHeaders": {
"type": "object",
"properties": {
+8 -1
View File
@@ -5,6 +5,13 @@ definitions:
message:
type: string
type: object
models.CreateSiteResponse:
properties:
raw_deploy_token:
type: string
site:
$ref: '#/definitions/models.Site'
type: object
models.CustomHeaders:
properties:
headers:
@@ -456,7 +463,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/models.Site'
$ref: '#/definitions/models.CreateSiteResponse'
"400":
description: Bad Request
schema: