fix: add missing route for codersdk.PostLogSource (#13421)

This commit is contained in:
Colin Adler
2024-06-03 12:29:50 -05:00
committed by GitHub
parent 8cdd468107
commit 9d00a26a90
10 changed files with 269 additions and 4 deletions

54
coderd/apidoc/docs.go generated
View File

@ -5871,6 +5871,45 @@ const docTemplate = `{
}
}
},
"/workspaceagents/me/log-source": {
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Agents"
],
"summary": "Post workspace agent log source",
"operationId": "post-workspace-agent-log-source",
"parameters": [
{
"description": "Log source request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/agentsdk.PostLogSourceRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.WorkspaceAgentLogSource"
}
}
}
}
},
"/workspaceagents/me/logs": {
"patch": {
"security": [
@ -8112,6 +8151,21 @@ const docTemplate = `{
}
}
},
"agentsdk.PostLogSourceRequest": {
"type": "object",
"properties": {
"display_name": {
"type": "string"
},
"icon": {
"type": "string"
},
"id": {
"description": "ID is a unique identifier for the log source.\nIt is scoped to a workspace agent, and can be statically\ndefined inside code to prevent duplicate sources from being\ncreated for the same agent.",
"type": "string"
}
}
},
"agentsdk.PostMetadataRequest": {
"type": "object",
"properties": {