@Summary Get groups by organization @ID get-groups-by-organization @Security CoderSessionToken @Produce json @Tags Enterprise @Param organization path string true "Organization ID" format(uuid) @Success 200 {array} codersdk.Group @Router /api/v2/organizations/{organization}/groups [get]
(rw http.ResponseWriter, r *http.Request)
| 538 | // @Success 200 {array} codersdk.Group |
| 539 | // @Router /api/v2/organizations/{organization}/groups [get] |
| 540 | func (api *API) groupsByOrganization(rw http.ResponseWriter, r *http.Request) { |
| 541 | org := httpmw.OrganizationParam(r) |
| 542 | |
| 543 | values := r.URL.Query() |
| 544 | values.Set("organization", org.ID.String()) |
| 545 | r.URL.RawQuery = values.Encode() |
| 546 | |
| 547 | api.groups(rw, r) |
| 548 | } |
| 549 | |
| 550 | // @Summary Get groups |
| 551 | // @ID get-groups |
nothing calls this directly
no test coverage detected