Skip to content

Commit 0796e9c

Browse files
committed
improve annotations for endpoint
1 parent 61ef026 commit 0796e9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

coderd/provisionerkeys.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ import (
1313
// Returns tags from a provisioner key.
1414
// The purpose of this function is to return the provisioner tags
1515
// associated with the provisioner key using the ID.
16-
// GET /provisionerkeys/{provisionerkeyid}/tags
16+
// @Summary Get provisioner key tags by ID
17+
// @ID get-provisioner-key-tags-by-id
18+
// @Produce json
19+
// @Tags Provisioner-Keys
20+
// @Param provisionerkeyid path string true "Provisioner Key ID" format(uuid)
21+
// @Success 200 {object} codersdk.ProvisionerKeyTags
22+
// @Router /provisionerkeys/{provisionerkeyid}/tags [get]
1723
func (api *API) getProvisionKeyTags(rw http.ResponseWriter, r *http.Request) {
1824
var (
1925
ctx = r.Context()

0 commit comments

Comments
 (0)