feat: add endpoint for resolving autostart status (#10507)

This commit is contained in:
Jon Ayers
2023-11-08 23:24:56 -06:00
committed by GitHub
parent cf8ee78547
commit e23873ff8f
11 changed files with 425 additions and 0 deletions

43
coderd/apidoc/docs.go generated
View File

@ -6480,6 +6480,41 @@ const docTemplate = `{
}
}
},
"/workspaces/{workspace}/resolve-autostart": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Workspaces"
],
"summary": "Resolve workspace autostart by id.",
"operationId": "resolve-workspace-autostart-by-id",
"parameters": [
{
"type": "string",
"format": "uuid",
"description": "Workspace ID",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.ResolveAutostartResponse"
}
}
}
}
},
"/workspaces/{workspace}/ttl": {
"put": {
"security": [
@ -9720,6 +9755,14 @@ const docTemplate = `{
}
}
},
"codersdk.ResolveAutostartResponse": {
"type": "object",
"properties": {
"parameter_mismatch": {
"type": "boolean"
}
}
},
"codersdk.ResourceType": {
"type": "string",
"enum": [