@Summary Get organization by ID @ID get-organization-by-id @Security CoderSessionToken @Produce json @Tags Organizations @Param organization path string true "Organization ID" format(uuid) @Success 200 {object} codersdk.Organization @Router /api/v2/organizations/{organization} [get]
(rw http.ResponseWriter, r *http.Request)
| 45 | // @Success 200 {object} codersdk.Organization |
| 46 | // @Router /api/v2/organizations/{organization} [get] |
| 47 | func (*API) organization(rw http.ResponseWriter, r *http.Request) { |
| 48 | ctx := r.Context() |
| 49 | organization := httpmw.OrganizationParam(r) |
| 50 | |
| 51 | httpapi.Write(ctx, rw, http.StatusOK, db2sdk.Organization(organization)) |
| 52 | } |
nothing calls this directly
no test coverage detected