fix: rename group GET request (#9097)

* fix: group GET req naming

* make: gen
This commit is contained in:
Eric Paulsen 2023-08-15 14:47:08 -04:00 committed by GitHub
parent 279d9f71f9
commit e4c24e05f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

6
coderd/apidoc/docs.go generated
View File

@ -787,12 +787,12 @@ const docTemplate = `{
"tags": [
"Enterprise"
],
"summary": "Get group by name",
"operationId": "get-group-by-name",
"summary": "Get group by ID",
"operationId": "get-group-by-id",
"parameters": [
{
"type": "string",
"description": "Group name",
"description": "Group id",
"name": "group",
"in": "path",
"required": true

View File

@ -675,12 +675,12 @@
],
"produces": ["application/json"],
"tags": ["Enterprise"],
"summary": "Get group by name",
"operationId": "get-group-by-name",
"summary": "Get group by ID",
"operationId": "get-group-by-id",
"parameters": [
{
"type": "string",
"description": "Group name",
"description": "Group id",
"name": "group",
"in": "path",
"required": true

View File

@ -148,7 +148,7 @@ curl -X GET http://coder-server:8080/api/v2/entitlements \
To perform this operation, you must be authenticated. [Learn more](authentication.md).
## Get group by name
## Get group by ID
### Code samples
@ -165,7 +165,7 @@ curl -X GET http://coder-server:8080/api/v2/groups/{group} \
| Name | In | Type | Required | Description |
| ------- | ---- | ------ | -------- | ----------- |
| `group` | path | string | true | Group name |
| `group` | path | string | true | Group id |
### Example responses

View File

@ -322,12 +322,12 @@ func (api *API) groupByOrganization(rw http.ResponseWriter, r *http.Request) {
api.group(rw, r)
}
// @Summary Get group by name
// @ID get-group-by-name
// @Summary Get group by ID
// @ID get-group-by-id
// @Security CoderSessionToken
// @Produce json
// @Tags Enterprise
// @Param group path string true "Group name"
// @Param group path string true "Group id"
// @Success 200 {object} codersdk.Group
// @Router /groups/{group} [get]
func (api *API) group(rw http.ResponseWriter, r *http.Request) {