Allow configuring git access protocol via Groups API
What does this MR do and why?
Contributes to #436618 (closed)
Problem
We allow to configure Git access protocol via UI. Implemented in !89817 (merged). But this functionality is not available at REST API level.
Solution
- Expose
enabled_git_access_protocol
value in the API response. - Allow to provide
enabled_git_access_protocol
for POST/PUT requests. - Verify that user has permissions to set the field
- Verify that the field is set for root group
How to set up and validate locally
- Visit http://127.0.0.1:3000/api/v4/groups/22 (modify Group id if necessary)
- You should see
enabled_git_access_protocol
field in the response
Edited by Vasilii Iakliushin