MCPcopy Index your code
hub / github.com/coder/coder / templateDAUs

Method templateDAUs

coderd/templates.go:904–908  ·  view source on GitHub ↗

@Summary Get template DAUs by ID @ID get-template-daus-by-id @Security CoderSessionToken @Produce json @Tags Templates @Param template path string true "Template ID" format(uuid) @Success 200 {object} codersdk.DAUsResponse @Router /api/v2/templates/{template}/daus [get]

(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

902// @Success 200 {object} codersdk.DAUsResponse
903// @Router /api/v2/templates/{template}/daus [get]
904func (api *API) templateDAUs(rw http.ResponseWriter, r *http.Request) {
905 template := httpmw.TemplateParam(r)
906
907 api.returnDAUsInternal(rw, r, []uuid.UUID{template.ID})
908}
909
910// @Summary Get template examples by organization
911// @ID get-template-examples-by-organization

Callers

nothing calls this directly

Calls 2

returnDAUsInternalMethod · 0.95
TemplateParamFunction · 0.92

Tested by

no test coverage detected