[
https://issues.apache.org/jira/browse/RANGER-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17613850#comment-17613850
]
Ramachandran edited comment on RANGER-3010 at 10/11/22 8:58 AM:
----------------------------------------------------------------
Added QueryParam annotation as part of the existing and new Rest API
contract to make it clear understanding for the end users:
Existing API's
PublicAPIsv2:
/api/roles/\{id}/addUsersAndGroups
/api/roles/\{id}/removeUsersAndGroups
/api/roles/\{id}/removeAdminFromUsersAndGroups
RoleREST:
/roles/roles/\{id}/addUsersAndGroups
/roles/roles/\{id}/removeUsersAndGroups
/roles/roles/\{id}/removeAdminFromUsersAndGroups
New API's:
PublicAPIsv2:
/api/roles/name/\{name}/addUsersAndGroups
/api/roles/name/\{name}/removeUsersAndGroups
/api/roles/name/\{name}/removeAdminFromUsersAndGroups
RoleREST:
/roles/roles/name/\{name}/addUsersAndGroups
/roles/roles/name/\{name}/removeUsersAndGroups
/roles/roles/name/\{name}/removeAdminFromUsersAndGroups
Can you please take a look
cc >> [[email protected]] [~vel] [~pradeep]
was (Author: JIRAUSER295265):
Added QueryParam annotation as part of the existing and new Rest API
contract to make it clear understanding for the end users:
Existing API's
PublicAPIsv2:
/api/roles/\{id}/addUsersAndGroups
/api/roles/\{id}/removeUsersAndGroups
/api/roles/\{id}/removeAdminFromUsersAndGroups
RoleREST:
/roles/roles/\{id}/addUsersAndGroups
/roles/roles/\{id}/removeUsersAndGroups
/roles/roles/\{id}/removeAdminFromUsersAndGroups
New API's:
PublicAPIsv2:
/api/roles/name/\{name}/addUsersAndGroups
/api/roles/name/\{name}/removeUsersAndGroups
/api/roles/name/\{name}/removeAdminFromUsersAndGroups
RoleREST:
/roles/roles/name/\{name}/addUsersAndGroups
/roles/roles/name/\{name}/removeUsersAndGroups
/roles/roles/name/\{name}/removeAdminFromUsersAndGroups
cc >> [[email protected]] [~vel] [~pradeep]
> Rest API 'addUsersAndGroups' issue
> ----------------------------------
>
> Key: RANGER-3010
> URL: https://issues.apache.org/jira/browse/RANGER-3010
> Project: Ranger
> Issue Type: Improvement
> Components: Ranger
> Reporter: leo sun
> Assignee: Ramachandran
> Priority: Major
> Attachments: 0001-RANGER-3010-Rest-API-addUsersAndGroups-issue.patch
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> I want to use Ranger API functions - addUsersAndGroups & removeUsersAndGroups
> to manage users and groups of role. But official reference don't have
> suitable example for these two APIs. And my all attempts failed.
> Another point: For example, I found the input type of addUsersAndGroups is
> Boolean on official web, but the input of the implement function is two
> string list and one boolean.
> I don't know how to use it. Could you help me with this? [~abhayk]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)