{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/69","labels_url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/69/comments","events_url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/69/events","html_url":"https://github.com/OpenSCAP/foreman_openscap/pull/69","id":55501871,"number":69,"title":"Api for OpenSCAP_foreman","user":{"login":"shlomizadok","id":433583,"avatar_url":"https://avatars.githubusercontent.com/u/433583?v=3","gravatar_id":"","url":"https://api.github.com/users/shlomizadok","html_url":"https://github.com/shlomizadok","followers_url":"https://api.github.com/users/shlomizadok/followers","following_url":"https://api.github.com/users/shlomizadok/following{/other_user}","gists_url":"https://api.github.com/users/shlomizadok/gists{/gist_id}","starred_url":"https://api.github.com/users/shlomizadok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlomizadok/subscriptions","organizations_url":"https://api.github.com/users/shlomizadok/orgs","repos_url":"https://api.github.com/users/shlomizadok/repos","events_url":"https://api.github.com/users/shlomizadok/events{/privacy}","received_events_url":"https://api.github.com/users/shlomizadok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T16:18:38Z","updated_at":"2015-02-04T15:19:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/pulls/69","html_url":"https://github.com/OpenSCAP/foreman_openscap/pull/69","diff_url":"https://github.com/OpenSCAP/foreman_openscap/pull/69.diff","patch_url":"https://github.com/OpenSCAP/foreman_openscap/pull/69.patch"},"body":"@isratrade, @ohadlevy please review.\r\nA few concerns:\r\nneeded to override a few methods, among them ```resource_name```, ```get_resource``` & ```find_resource``` - this is due the fact that all of openscap models start with ```Scaptimony::model_name```\r\nIn the weird case of policy controller I also needed to create a ```policy_url```.\r\n\r\nPlease **Do NOT merge** until I will add some tests to this functionality.\r\n\r\nPlease review and test.\r\n\r\nFixes #7 "},"comment":{"url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/comments/72873025","html_url":"https://github.com/OpenSCAP/foreman_openscap/pull/69#issuecomment-72873025","issue_url":"https://api.github.com/repos/OpenSCAP/foreman_openscap/issues/69","id":72873025,"user":{"login":"shlomizadok","id":433583,"avatar_url":"https://avatars.githubusercontent.com/u/433583?v=3","gravatar_id":"","url":"https://api.github.com/users/shlomizadok","html_url":"https://github.com/shlomizadok","followers_url":"https://api.github.com/users/shlomizadok/followers","following_url":"https://api.github.com/users/shlomizadok/following{/other_user}","gists_url":"https://api.github.com/users/shlomizadok/gists{/gist_id}","starred_url":"https://api.github.com/users/shlomizadok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlomizadok/subscriptions","organizations_url":"https://api.github.com/users/shlomizadok/orgs","repos_url":"https://api.github.com/users/shlomizadok/repos","events_url":"https://api.github.com/users/shlomizadok/events{/privacy}","received_events_url":"https://api.github.com/users/shlomizadok/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T15:19:30Z","updated_at":"2015-02-04T15:19:30Z","body":"Created API, with some functional tests.\r\nTo run the tests execute: ```bundle exec rake test:foreman_openscap``` from your foreman directory.\r\n@ohadlevy @isimluk @isratrade please review.\r\n(Good to merge if review / tests okay)"}}