mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct SCIM Swagger try it out URLs (#24779)
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
// @Produce json
|
||||
// @Tags Organizations
|
||||
// @Success 200 {object} []codersdk.Organization
|
||||
// @Router /organizations [get]
|
||||
// @Router /api/v2/organizations [get]
|
||||
func (api *API) organizations(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
organizations, err := api.Database.GetOrganizations(ctx, database.GetOrganizationsParams{})
|
||||
@@ -43,7 +43,7 @@ func (api *API) organizations(rw http.ResponseWriter, r *http.Request) {
|
||||
// @Tags Organizations
|
||||
// @Param organization path string true "Organization ID" format(uuid)
|
||||
// @Success 200 {object} codersdk.Organization
|
||||
// @Router /organizations/{organization} [get]
|
||||
// @Router /api/v2/organizations/{organization} [get]
|
||||
func (*API) organization(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
organization := httpmw.OrganizationParam(r)
|
||||
|
||||
Reference in New Issue
Block a user