{"action":"created","issue":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/1842","repository_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode","labels_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/1842/comments","events_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/1842/events","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/pull/1842","id":347253389,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1OTIxMDU2","number":1842,"title":"Hide staking API when POW and mining API when POS","user":{"login":"TjadenFroyda","id":38709281,"node_id":"MDQ6VXNlcjM4NzA5Mjgx","avatar_url":"https://avatars3.githubusercontent.com/u/38709281?v=4","gravatar_id":"","url":"https://api.github.com/users/TjadenFroyda","html_url":"https://github.com/TjadenFroyda","followers_url":"https://api.github.com/users/TjadenFroyda/followers","following_url":"https://api.github.com/users/TjadenFroyda/following{/other_user}","gists_url":"https://api.github.com/users/TjadenFroyda/gists{/gist_id}","starred_url":"https://api.github.com/users/TjadenFroyda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TjadenFroyda/subscriptions","organizations_url":"https://api.github.com/users/TjadenFroyda/orgs","repos_url":"https://api.github.com/users/TjadenFroyda/repos","events_url":"https://api.github.com/users/TjadenFroyda/events{/privacy}","received_events_url":"https://api.github.com/users/TjadenFroyda/received_events","type":"User","site_admin":false},"labels":[{"id":926800905,"node_id":"MDU6TGFiZWw5MjY4MDA5MDU=","url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/labels/pr-review-medium","name":"pr-review-medium","color":"295182","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-03T04:15:50Z","updated_at":"2018-08-04T00:33:50Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/pulls/1842","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/pull/1842","diff_url":"https://github.com/stratisproject/StratisBitcoinFullNode/pull/1842.diff","patch_url":"https://github.com/stratisproject/StratisBitcoinFullNode/pull/1842.patch"},"body":"Fix for #1747 by implementing swagger documentfilters. Please see screenshots attached to that issue for demonstration. \r\nAlso includes:\r\n- Staking and Mining API methods now throw bad request (400) exception when call is attempted from wrong consensus context. \r\n- Updated unit and integration tests, including methods demonstrating the above. \r\n\r\n1914 tests passing, 18 failing locally - all unrelated and all \"System.UnauthorizedAccessException\" \r\n@ferdeen @fassadlr "},"comment":{"url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/comments/410408061","html_url":"https://github.com/stratisproject/StratisBitcoinFullNode/pull/1842#issuecomment-410408061","issue_url":"https://api.github.com/repos/stratisproject/StratisBitcoinFullNode/issues/1842","id":410408061,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQwODA2MQ==","user":{"login":"TjadenFroyda","id":38709281,"node_id":"MDQ6VXNlcjM4NzA5Mjgx","avatar_url":"https://avatars3.githubusercontent.com/u/38709281?v=4","gravatar_id":"","url":"https://api.github.com/users/TjadenFroyda","html_url":"https://github.com/TjadenFroyda","followers_url":"https://api.github.com/users/TjadenFroyda/followers","following_url":"https://api.github.com/users/TjadenFroyda/following{/other_user}","gists_url":"https://api.github.com/users/TjadenFroyda/gists{/gist_id}","starred_url":"https://api.github.com/users/TjadenFroyda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TjadenFroyda/subscriptions","organizations_url":"https://api.github.com/users/TjadenFroyda/orgs","repos_url":"https://api.github.com/users/TjadenFroyda/repos","events_url":"https://api.github.com/users/TjadenFroyda/events{/privacy}","received_events_url":"https://api.github.com/users/TjadenFroyda/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T00:33:50Z","updated_at":"2018-08-04T00:33:50Z","author_association":"CONTRIBUTOR","body":"So moving the logic to the MvcBuilderExtensions didn't work to remove it from swagger. Might be forced to use the logic in the api. Thoughts or other ideas?"}}
{"actor":{"display_login":"TjadenFroyda"}}