{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/30","repository_url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin","labels_url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/30/comments","events_url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/30/events","html_url":"https://github.com/jenkinsci/role-strategy-plugin/pull/30","id":245310941,"number":30,"title":"Add GET Roles and UnassignRole to REST API","user":{"login":"LegallGuillaume","id":25372034,"avatar_url":"https://avatars0.githubusercontent.com/u/25372034?v=4","gravatar_id":"","url":"https://api.github.com/users/LegallGuillaume","html_url":"https://github.com/LegallGuillaume","followers_url":"https://api.github.com/users/LegallGuillaume/followers","following_url":"https://api.github.com/users/LegallGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/LegallGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/LegallGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegallGuillaume/subscriptions","organizations_url":"https://api.github.com/users/LegallGuillaume/orgs","repos_url":"https://api.github.com/users/LegallGuillaume/repos","events_url":"https://api.github.com/users/LegallGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/LegallGuillaume/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-07-25T07:34:47Z","updated_at":"2018-02-13T08:30:48Z","closed_at":"2017-08-15T21:01:32Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/pulls/30","html_url":"https://github.com/jenkinsci/role-strategy-plugin/pull/30","diff_url":"https://github.com/jenkinsci/role-strategy-plugin/pull/30.diff","patch_url":"https://github.com/jenkinsci/role-strategy-plugin/pull/30.patch"},"body":"I added the unassign to api with \r\nExample: curl -X POST localhost:8080/role-strategy/strategy/unassignRole --data \"type=globalRoles&amp;roleName=AMD&amp;sid=username\"\r\n\r\nand I added the GET function api to return all roles and their groups with\r\nExample: curl -X GET localhost:8080/role-strategy/strategy/getAllRoles\r\nResult json: {roleName: ['group1', 'group2'], roleName : ''}\r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/comments/365186269","html_url":"https://github.com/jenkinsci/role-strategy-plugin/pull/30#issuecomment-365186269","issue_url":"https://api.github.com/repos/jenkinsci/role-strategy-plugin/issues/30","id":365186269,"user":{"login":"LahariGuntha","id":33144388,"avatar_url":"https://avatars0.githubusercontent.com/u/33144388?v=4","gravatar_id":"","url":"https://api.github.com/users/LahariGuntha","html_url":"https://github.com/LahariGuntha","followers_url":"https://api.github.com/users/LahariGuntha/followers","following_url":"https://api.github.com/users/LahariGuntha/following{/other_user}","gists_url":"https://api.github.com/users/LahariGuntha/gists{/gist_id}","starred_url":"https://api.github.com/users/LahariGuntha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LahariGuntha/subscriptions","organizations_url":"https://api.github.com/users/LahariGuntha/orgs","repos_url":"https://api.github.com/users/LahariGuntha/repos","events_url":"https://api.github.com/users/LahariGuntha/events{/privacy}","received_events_url":"https://api.github.com/users/LahariGuntha/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T08:30:48Z","updated_at":"2018-02-13T08:30:48Z","author_association":"NONE","body":"Hi,\r\n\r\nIs there a rest api call to assign a particular role to a person in a particular project???"}}
{"actor":{"display_login":"LahariGuntha"}}