@Summary Get template version dry-run by job ID @ID get-template-version-dry-run-by-job-id @Security CoderSessionToken @Produce json @Tags Templates @Param templateversion path string true "Template version ID" format(uuid) @Param jobID path string true "Job ID" format(uuid) @Success 200 {object} co
(rw http.ResponseWriter, r *http.Request)
| 593 | // @Success 200 {object} codersdk.ProvisionerJob |
| 594 | // @Router /api/v2/templateversions/{templateversion}/dry-run/{jobID} [get] |
| 595 | func (api *API) templateVersionDryRun(rw http.ResponseWriter, r *http.Request) { |
| 596 | ctx := r.Context() |
| 597 | job, ok := api.fetchTemplateVersionDryRunJob(rw, r) |
| 598 | if !ok { |
| 599 | return |
| 600 | } |
| 601 | |
| 602 | httpapi.Write(ctx, rw, http.StatusOK, convertProvisionerJob(job)) |
| 603 | } |
| 604 | |
| 605 | // @Summary Get template version dry-run matched provisioners |
| 606 | // @ID get-template-version-dry-run-matched-provisioners |
nothing calls this directly
no test coverage detected