Skip to content

docs: API workspace agents and builds #5538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
workspacebuilds.go
  • Loading branch information
mtojek committed Jan 2, 2023
commit d2a9af51afb44e592e9c92008fc335ce0663d7af
10 changes: 5 additions & 5 deletions coderd/apidoc/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"Workspaces"
"Builds"
],
"summary": "Get workspace build",
"operationId": "get-workspace-build",
Expand Down Expand Up @@ -1253,7 +1253,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"Workspaces"
"Builds"
],
"summary": "Cancel workspace build",
"operationId": "cancel-workspace-build",
Expand Down Expand Up @@ -1287,7 +1287,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"Workspaces"
"Builds"
],
"summary": "Get workspace build logs",
"operationId": "get-workspace-build-logs",
Expand Down Expand Up @@ -1342,7 +1342,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"Workspaces"
"Builds"
],
"summary": "Get workspace resources for workspace build",
"operationId": "get-workspace-resources-for-workspace-build",
Expand Down Expand Up @@ -1379,7 +1379,7 @@ const docTemplate = `{
"application/json"
],
"tags": [
"Workspaces"
"Builds"
],
"summary": "Get provisioner state for workspace build",
"operationId": "get-provisioner-state-for-workspace-build",
Expand Down
10 changes: 5 additions & 5 deletions coderd/apidoc/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@
}
],
"produces": ["application/json"],
"tags": ["Workspaces"],
"tags": ["Builds"],
"summary": "Get workspace build",
"operationId": "get-workspace-build",
"parameters": [
Expand Down Expand Up @@ -1082,7 +1082,7 @@
}
],
"produces": ["application/json"],
"tags": ["Workspaces"],
"tags": ["Builds"],
"summary": "Cancel workspace build",
"operationId": "cancel-workspace-build",
"parameters": [
Expand Down Expand Up @@ -1112,7 +1112,7 @@
}
],
"produces": ["application/json"],
"tags": ["Workspaces"],
"tags": ["Builds"],
"summary": "Get workspace build logs",
"operationId": "get-workspace-build-logs",
"parameters": [
Expand Down Expand Up @@ -1163,7 +1163,7 @@
}
],
"produces": ["application/json"],
"tags": ["Workspaces"],
"tags": ["Builds"],
"summary": "Get workspace resources for workspace build",
"operationId": "get-workspace-resources-for-workspace-build",
"parameters": [
Expand Down Expand Up @@ -1196,7 +1196,7 @@
}
],
"produces": ["application/json"],
"tags": ["Workspaces"],
"tags": ["Builds"],
"summary": "Get provisioner state for workspace build",
"operationId": "get-provisioner-state-for-workspace-build",
"parameters": [
Expand Down
10 changes: 5 additions & 5 deletions coderd/workspacebuilds.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// @ID get-workspace-build
// @Security CoderSessionToken
// @Produce json
// @Tags Workspaces
// @Tags Builds
// @Param workspacebuild path string true "Workspace build ID"
// @Success 200 {object} codersdk.WorkspaceBuild
// @Router /workspacebuilds/{workspacebuild} [get]
Expand Down Expand Up @@ -547,7 +547,7 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
// @ID cancel-workspace-build
// @Security CoderSessionToken
// @Produce json
// @Tags Workspaces
// @Tags Builds
// @Param workspacebuild path string true "Workspace build ID"
// @Success 200 {object} codersdk.Response
// @Router /workspacebuilds/{workspacebuild}/cancel [patch]
Expand Down Expand Up @@ -650,7 +650,7 @@ func (api *API) verifyUserCanCancelWorkspaceBuilds(ctx context.Context, userID u
// @ID get-workspace-resources-for-workspace-build
// @Security CoderSessionToken
// @Produce json
// @Tags Workspaces
// @Tags Builds
// @Param workspacebuild path string true "Workspace build ID"
// @Success 200 {array} codersdk.WorkspaceResource
// @Router /workspacebuilds/{workspacebuild}/resources [get]
Expand Down Expand Up @@ -685,7 +685,7 @@ func (api *API) workspaceBuildResources(rw http.ResponseWriter, r *http.Request)
// @ID get-workspace-build-logs
// @Security CoderSessionToken
// @Produce json
// @Tags Workspaces
// @Tags Builds
// @Param workspacebuild path string true "Workspace build ID"
// @Param before query int false "Before Unix timestamp"
// @Param after query int false "After Unix timestamp"
Expand Down Expand Up @@ -723,7 +723,7 @@ func (api *API) workspaceBuildLogs(rw http.ResponseWriter, r *http.Request) {
// @ID get-provisioner-state-for-workspace-build
// @Security CoderSessionToken
// @Produce json
// @Tags Workspaces
// @Tags Builds
// @Param workspacebuild path string true "Workspace build ID"
// @Success 200 {object} codersdk.WorkspaceBuild
// @Router /workspacebuilds/{workspacebuild}/state [get]
Expand Down
Loading