@@ -38,12 +38,13 @@ import (
38
38
39
39
// Returns a single template.
40
40
//
41
- // @Summary Get template metadata by ID
41
+ // @Summary Get template settings by ID
42
42
// @ID get-template-metadata-by-id
43
43
// @Security CoderSessionToken
44
44
// @Produce json
45
45
// @Tags Templates
46
46
// @Param template path string true "Template ID" format(uuid)
47
+
47
48
// @Success 200 {object} codersdk.Template
48
49
// @Router /templates/{template} [get]
49
50
func (api * API ) template (rw http.ResponseWriter , r * http.Request ) {
@@ -629,12 +630,13 @@ func (api *API) templateByOrganizationAndName(rw http.ResponseWriter, r *http.Re
629
630
httpapi .Write (ctx , rw , http .StatusOK , api .convertTemplate (template ))
630
631
}
631
632
632
- // @Summary Update template metadata by ID
633
+ // @Summary Update template settings by ID
633
634
// @ID update-template-metadata-by-id
634
635
// @Security CoderSessionToken
635
636
// @Produce json
636
637
// @Tags Templates
637
638
// @Param template path string true "Template ID" format(uuid)
639
+ // @Param request body codersdk.UpdateTemplateMeta true "Patch template settings request"
638
640
// @Success 200 {object} codersdk.Template
639
641
// @Router /templates/{template} [patch]
640
642
func (api * API ) patchTemplateMeta (rw http.ResponseWriter , r * http.Request ) {
0 commit comments