[ 
https://issues.apache.org/jira/browse/RANGER-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645272#comment-17645272
 ] 

Ramachandran commented on RANGER-3808:
--------------------------------------

[~nixon]  Apart from the path parameter change we need to add QueryParam 
annotation  as part of the Rest API contract for the below APIs

PublicAPIsv2:

/api/roles/\{id}/addUsersAndGroups
RoleREST:

/roles/roles/\{id}/addUsersAndGroups 

 
curl -u <adminUserName> -X PUT -H 'Content-Type:application/json' 
"[http://<rangerHostName>:<port>/service/roles/roles/\{roleId}/<roleName>/addUsersAndGroups?users=<users>&isAdmin=true&serviceName=<serviceName>&execUser=<execUser>&groups=<groups|http://%3Crangerhostname%3E:<port>/service/roles/roles/name/%3CroleName%3E/addUsersAndGroups?users=%3Cusers%3E&isAdmin=true&serviceName=%3CserviceName%3E&execUser=%3CexecUser%3E&groups=%3Cgroups]>"
 -v -k

Refer:

can you please take the below patch and try ?

[https://reviews.apache.org/r/74141/]

cc >> [~madhan] 

 

> Ranger的REST API接口(/roles/roles/{id}/addUsersAndGroups)本地测试提示404
> ---------------------------------------------------------------
>
>                 Key: RANGER-3808
>                 URL: https://issues.apache.org/jira/browse/RANGER-3808
>             Project: Ranger
>          Issue Type: Test
>          Components: Ranger
>         Environment: 本地搭建的Ranger环境
>            Reporter: 唐娇龙
>            Assignee: Ramachandran
>            Priority: Blocker
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: 
> 0001-RANGER-3808-Ranger-Rest-API-roles-roles-id-addUsersA.patch, 
> image-2022-06-27-16-57-59-025.png
>
>
> 该接口本地环境测试提示404:
> [https://ranger.apache.org/apidocs/ui/index.html#!/RoleREST/addUsersAndGroups2]
> !image-2022-06-27-16-53-58-761.png!
> !image-2022-06-27-16-57-59-025.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to