[
https://issues.apache.org/jira/browse/SQOOP-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269004#comment-14269004
]
Richard edited comment on SQOOP-1979 at 1/8/15 8:58 AM:
--------------------------------------------------------
{code}
GET /v1/role/{rid}
{code}
Return details about one particular role with id:rid
Return all of them if rid equals to "all"
{code}
PUT /v1/role
{code}
Create new role without id:rid
Update existing role with id:rid
{code}
PUT data of JsonObject MRole
{code}
{code}
DELETE /v1/role/{rid}
{code}
{code}
GET /v1/role_user_group/{rugid}
{code}
Return details about one particular role_user_group with id:rugid
Return all of them if rugid equals to "all"
{code}
PUT /v1/role_user_group
{code}
Create new role without id:rugid
Update existing role_user_group with id:rid
{code}
PUT data of JsonObject MRoleUserGroup
{code}
{code}
DELETE /v1/role_user_group/{rugid}
{code}
{code}
GET /v1/privilege/{pid}
{code}
Return details about one particular privilege with id:pid
Return all of them if pid equals to "all"
{code}
PUT /v1/privilege
{code}
Create new role without id:pid
Update existing privilege with id:pid
{code}
PUT data of JsonObject MRoleUserGroup
{code}
{code}
DELETE /v1/privilege/{pid}
{code}
was (Author: richard_zhou):
{code}
GET /v1/role/{rid}
{code}
Return details about one particular role with id:rid
Return all of them if rid equals to "all"
{code}
PUT /v1/role
{code}
Create new role without id:rid
Update existing role with id:rid
{code}
PUT data of JsonObject MRole
{code}
DELETE /v1/role/{rid}
{code}
{code}
GET /v1/role_user_group/{rugid}
{code}
Return details about one particular role_user_group with id:rugid
Return all of them if rugid equals to "all"
{code}
PUT /v1/role_user_group
{code}
Create new role without id:rugid
Update existing role_user_group with id:rid
{code}
PUT data of JsonObject MRoleUserGroup
{code}
{code}
DELETE /v1/role_user_group/{rugid}
{code}
{code}
GET /v1/privilege/{pid}
{code}
Return details about one particular privilege with id:pid
Return all of them if pid equals to "all"
{code}
PUT /v1/privilege
{code}
Create new role without id:pid
Update existing privilege with id:pid
{code}
PUT data of JsonObject MRoleUserGroup
{code}
{code}
DELETE /v1/privilege/{pid}
{code}
> Rest API support
> ----------------
>
> Key: SQOOP-1979
> URL: https://issues.apache.org/jira/browse/SQOOP-1979
> Project: Sqoop
> Issue Type: Sub-task
> Components: sqoop2-framework
> Reporter: Richard
> Fix For: 1.99.7
>
>
> Handle Rest API in server side to grant/revoke role, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)