chore(coderd): allow creating workspaces without specifying an organization (#14048)

This commit is contained in:
Kayla Washburn-Love
2024-07-30 10:44:02 -06:00
committed by GitHub
parent 56dfc64bb0
commit bf4b7abf14
53 changed files with 814 additions and 254 deletions

48
coderd/apidoc/docs.go generated
View File

@ -2593,6 +2593,7 @@ const docTemplate = `{
],
"summary": "Create user workspace by organization",
"operationId": "create-user-workspace-by-organization",
"deprecated": true,
"parameters": [
{
"type": "string",
@ -5845,6 +5846,53 @@ const docTemplate = `{
}
}
},
"/users/{user}/workspaces": {
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"description": "Create a new workspace using a template. The request must\nspecify either the Template ID or the Template Version ID,\nnot both. If the Template ID is specified, the active version\nof the template will be used.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Workspaces"
],
"summary": "Create user workspace",
"operationId": "create-user-workspace",
"parameters": [
{
"type": "string",
"description": "Username, UUID, or me",
"name": "user",
"in": "path",
"required": true
},
{
"description": "Create workspace request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/codersdk.CreateWorkspaceRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.Workspace"
}
}
}
}
},
"/workspace-quota/{user}": {
"get": {
"security": [