{"action":"opened","number":854,"pull_request":{"url":"https://api.github.com/repos/LiskHQ/lisk/pulls/854","id":146760267,"html_url":"https://github.com/LiskHQ/lisk/pull/854","diff_url":"https://github.com/LiskHQ/lisk/pull/854.diff","patch_url":"https://github.com/LiskHQ/lisk/pull/854.patch","issue_url":"https://api.github.com/repos/LiskHQ/lisk/issues/854","number":854,"state":"open","locked":false,"title":"Middleware for new REST API responses - Subtask #225","user":{"login":"MaciejBaj","id":6909553,"avatar_url":"https://avatars1.githubusercontent.com/u/6909553?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejBaj","html_url":"https://github.com/MaciejBaj","followers_url":"https://api.github.com/users/MaciejBaj/followers","following_url":"https://api.github.com/users/MaciejBaj/following{/other_user}","gists_url":"https://api.github.com/users/MaciejBaj/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejBaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejBaj/subscriptions","organizations_url":"https://api.github.com/users/MaciejBaj/orgs","repos_url":"https://api.github.com/users/MaciejBaj/repos","events_url":"https://api.github.com/users/MaciejBaj/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejBaj/received_events","type":"User","site_admin":false},"body":"Parent issue: #225 \r\nLay the foundations for REST API messages including status codes. \r\nIn case of API failure, `ApiError` instance should be returned. HTTP middleware will handle error messages return in expected format: `{code: 500, message: 'Error message'}`.\r\nIn case of success, but empty result array code 204 is being returned.","created_at":"2017-10-16T11:29:33Z","updated_at":"2017-10-16T11:29:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"MaciejBaj","id":6909553,"avatar_url":"https://avatars1.githubusercontent.com/u/6909553?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejBaj","html_url":"https://github.com/MaciejBaj","followers_url":"https://api.github.com/users/MaciejBaj/followers","following_url":"https://api.github.com/users/MaciejBaj/following{/other_user}","gists_url":"https://api.github.com/users/MaciejBaj/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejBaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejBaj/subscriptions","organizations_url":"https://api.github.com/users/MaciejBaj/orgs","repos_url":"https://api.github.com/users/MaciejBaj/repos","events_url":"https://api.github.com/users/MaciejBaj/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejBaj/received_events","type":"User","site_admin":false},"assignees":[{"login":"MaciejBaj","id":6909553,"avatar_url":"https://avatars1.githubusercontent.com/u/6909553?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejBaj","html_url":"https://github.com/MaciejBaj","followers_url":"https://api.github.com/users/MaciejBaj/followers","following_url":"https://api.github.com/users/MaciejBaj/following{/other_user}","gists_url":"https://api.github.com/users/MaciejBaj/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejBaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejBaj/subscriptions","organizations_url":"https://api.github.com/users/MaciejBaj/orgs","repos_url":"https://api.github.com/users/MaciejBaj/repos","events_url":"https://api.github.com/users/MaciejBaj/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejBaj/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/LiskHQ/lisk/pulls/854/commits","review_comments_url":"https://api.github.com/repos/LiskHQ/lisk/pulls/854/comments","review_comment_url":"https://api.github.com/repos/LiskHQ/lisk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LiskHQ/lisk/issues/854/comments","statuses_url":"https://api.github.com/repos/LiskHQ/lisk/statuses/71230753630bf6e6ea60e9db239addb03fd9ff9c","head":{"label":"LiskHQ:225-middleware","ref":"225-middleware","sha":"71230753630bf6e6ea60e9db239addb03fd9ff9c","user":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":50873641,"name":"lisk","full_name":"LiskHQ/lisk","owner":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LiskHQ/lisk","description":"📟 Lisk blockchain application platform","fork":false,"url":"https://api.github.com/repos/LiskHQ/lisk","forks_url":"https://api.github.com/repos/LiskHQ/lisk/forks","keys_url":"https://api.github.com/repos/LiskHQ/lisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiskHQ/lisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiskHQ/lisk/teams","hooks_url":"https://api.github.com/repos/LiskHQ/lisk/hooks","issue_events_url":"https://api.github.com/repos/LiskHQ/lisk/issues/events{/number}","events_url":"https://api.github.com/repos/LiskHQ/lisk/events","assignees_url":"https://api.github.com/repos/LiskHQ/lisk/assignees{/user}","branches_url":"https://api.github.com/repos/LiskHQ/lisk/branches{/branch}","tags_url":"https://api.github.com/repos/LiskHQ/lisk/tags","blobs_url":"https://api.github.com/repos/LiskHQ/lisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiskHQ/lisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiskHQ/lisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiskHQ/lisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiskHQ/lisk/statuses/{sha}","languages_url":"https://api.github.com/repos/LiskHQ/lisk/languages","stargazers_url":"https://api.github.com/repos/LiskHQ/lisk/stargazers","contributors_url":"https://api.github.com/repos/LiskHQ/lisk/contributors","subscribers_url":"https://api.github.com/repos/LiskHQ/lisk/subscribers","subscription_url":"https://api.github.com/repos/LiskHQ/lisk/subscription","commits_url":"https://api.github.com/repos/LiskHQ/lisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiskHQ/lisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiskHQ/lisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiskHQ/lisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiskHQ/lisk/contents/{+path}","compare_url":"https://api.github.com/repos/LiskHQ/lisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiskHQ/lisk/merges","archive_url":"https://api.github.com/repos/LiskHQ/lisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiskHQ/lisk/downloads","issues_url":"https://api.github.com/repos/LiskHQ/lisk/issues{/number}","pulls_url":"https://api.github.com/repos/LiskHQ/lisk/pulls{/number}","milestones_url":"https://api.github.com/repos/LiskHQ/lisk/milestones{/number}","notifications_url":"https://api.github.com/repos/LiskHQ/lisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiskHQ/lisk/labels{/name}","releases_url":"https://api.github.com/repos/LiskHQ/lisk/releases{/id}","deployments_url":"https://api.github.com/repos/LiskHQ/lisk/deployments","created_at":"2016-02-01T21:45:35Z","updated_at":"2017-10-15T01:09:27Z","pushed_at":"2017-10-16T11:13:07Z","git_url":"git://github.com/LiskHQ/lisk.git","ssh_url":"git@github.com:LiskHQ/lisk.git","clone_url":"https://github.com/LiskHQ/lisk.git","svn_url":"https://github.com/LiskHQ/lisk","homepage":"https://lisk.io/","size":8327,"stargazers_count":590,"watchers_count":590,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":141,"mirror_url":null,"open_issues_count":87,"forks":141,"open_issues":87,"watchers":590,"default_branch":"development"}},"base":{"label":"LiskHQ:1.0.0","ref":"1.0.0","sha":"5c8709d3ca3232900c05d02e455f7e49caecbe1d","user":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":50873641,"name":"lisk","full_name":"LiskHQ/lisk","owner":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LiskHQ/lisk","description":"📟 Lisk blockchain application platform","fork":false,"url":"https://api.github.com/repos/LiskHQ/lisk","forks_url":"https://api.github.com/repos/LiskHQ/lisk/forks","keys_url":"https://api.github.com/repos/LiskHQ/lisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiskHQ/lisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiskHQ/lisk/teams","hooks_url":"https://api.github.com/repos/LiskHQ/lisk/hooks","issue_events_url":"https://api.github.com/repos/LiskHQ/lisk/issues/events{/number}","events_url":"https://api.github.com/repos/LiskHQ/lisk/events","assignees_url":"https://api.github.com/repos/LiskHQ/lisk/assignees{/user}","branches_url":"https://api.github.com/repos/LiskHQ/lisk/branches{/branch}","tags_url":"https://api.github.com/repos/LiskHQ/lisk/tags","blobs_url":"https://api.github.com/repos/LiskHQ/lisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiskHQ/lisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiskHQ/lisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiskHQ/lisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiskHQ/lisk/statuses/{sha}","languages_url":"https://api.github.com/repos/LiskHQ/lisk/languages","stargazers_url":"https://api.github.com/repos/LiskHQ/lisk/stargazers","contributors_url":"https://api.github.com/repos/LiskHQ/lisk/contributors","subscribers_url":"https://api.github.com/repos/LiskHQ/lisk/subscribers","subscription_url":"https://api.github.com/repos/LiskHQ/lisk/subscription","commits_url":"https://api.github.com/repos/LiskHQ/lisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiskHQ/lisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiskHQ/lisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiskHQ/lisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiskHQ/lisk/contents/{+path}","compare_url":"https://api.github.com/repos/LiskHQ/lisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiskHQ/lisk/merges","archive_url":"https://api.github.com/repos/LiskHQ/lisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiskHQ/lisk/downloads","issues_url":"https://api.github.com/repos/LiskHQ/lisk/issues{/number}","pulls_url":"https://api.github.com/repos/LiskHQ/lisk/pulls{/number}","milestones_url":"https://api.github.com/repos/LiskHQ/lisk/milestones{/number}","notifications_url":"https://api.github.com/repos/LiskHQ/lisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiskHQ/lisk/labels{/name}","releases_url":"https://api.github.com/repos/LiskHQ/lisk/releases{/id}","deployments_url":"https://api.github.com/repos/LiskHQ/lisk/deployments","created_at":"2016-02-01T21:45:35Z","updated_at":"2017-10-15T01:09:27Z","pushed_at":"2017-10-16T11:13:07Z","git_url":"git://github.com/LiskHQ/lisk.git","ssh_url":"git@github.com:LiskHQ/lisk.git","clone_url":"https://github.com/LiskHQ/lisk.git","svn_url":"https://github.com/LiskHQ/lisk","homepage":"https://lisk.io/","size":8327,"stargazers_count":590,"watchers_count":590,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":141,"mirror_url":null,"open_issues_count":87,"forks":141,"open_issues":87,"watchers":590,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/LiskHQ/lisk/pulls/854"},"html":{"href":"https://github.com/LiskHQ/lisk/pull/854"},"issue":{"href":"https://api.github.com/repos/LiskHQ/lisk/issues/854"},"comments":{"href":"https://api.github.com/repos/LiskHQ/lisk/issues/854/comments"},"review_comments":{"href":"https://api.github.com/repos/LiskHQ/lisk/pulls/854/comments"},"review_comment":{"href":"https://api.github.com/repos/LiskHQ/lisk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LiskHQ/lisk/pulls/854/commits"},"statuses":{"href":"https://api.github.com/repos/LiskHQ/lisk/statuses/71230753630bf6e6ea60e9db239addb03fd9ff9c"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":103,"deletions":3,"changed_files":5}}
{"actor":{"display_login":"MaciejBaj"}}