Commit da36575a authored by Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak

Merge branch 'membership_lock-api' into 'master'

Expose membership_lock on group detail API

See merge request gitlab-org/gitlab!82271
parents 98427fea 691bf90d
...@@ -483,6 +483,8 @@ Example response: ...@@ -483,6 +483,8 @@ Example response:
## Details of a group ## Details of a group
> The `membership_lock` field was [added](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82271) in GitLab 14.10.
Get all details of a group. This endpoint can be accessed without authentication Get all details of a group. This endpoint can be accessed without authentication
if the group is publicly accessible. In case the user that requests is an administrator if the group is publicly accessible. In case the user that requests is an administrator
if the group is publicly accessible. With authentication, it returns the `runners_token` if the group is publicly accessible. With authentication, it returns the `runners_token`
...@@ -715,6 +717,18 @@ the `marked_for_deletion_on` attribute: ...@@ -715,6 +717,18 @@ the `marked_for_deletion_on` attribute:
} }
``` ```
Users of [GitLab Premium or higher](https://about.gitlab.com/pricing/) also see
the `membership_lock` attribute:
```json
{
"id": 4,
"description": "Aliquid qui quis dignissimos distinctio ut commodi voluptas est.",
"membership_lock": false,
...
}
```
When adding the parameter `with_projects=false`, projects aren't returned. When adding the parameter `with_projects=false`, projects aren't returned.
```shell ```shell
......
...@@ -11,6 +11,8 @@ module EE ...@@ -11,6 +11,8 @@ module EE
expose :extra_shared_runners_minutes_limit expose :extra_shared_runners_minutes_limit
expose :prevent_forking_outside_group?, expose :prevent_forking_outside_group?,
as: :prevent_forking_outside_group as: :prevent_forking_outside_group
expose :membership_lock?,
as: :membership_lock
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment