Smriti/370090 create api manage customizable roles
What does this MR do and why?
Created GET
POST
and DELETE
endpoints for member_roles
Screenshots or screen recordings
GET Request
POST Request
DELETE Request
How to set up and validate locally
-
Enable the feature flag
gdk rails console Feature.enable('api_customizable_roles')
-
Use curl requests to verify the APIs
curl --location --request GET 'https://gdk.test:3443/api/v4/groups/22/member_roles/' \ --header 'PRIVATE-TOKEN:< Valid Private Token for Admin role>' \ --form 'base_access_level="20"' \ --form 'download_code="0"' curl --location --request POST 'https://gdk.test:3443/api/v4/groups/22/member_roles/' \ --header 'PRIVATE-TOKEN:< Valid Private Token for Admin role>' \ --form 'base_access_level="30"' \ --form 'download_code="1"' curl --location --request DELETE 'https://gdk.test:3443/api/v4/groups/22/member_roles/1' \ --header 'PRIVATE-TOKEN:< Valid Private Token for Admin role>'
-->
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Smriti Garg