{"action":"created","issue":{"url":"https://api.github.com/repos/mojaloop/project/issues/479","repository_url":"https://api.github.com/repos/mojaloop/project","labels_url":"https://api.github.com/repos/mojaloop/project/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/mojaloop/project/issues/479/comments","events_url":"https://api.github.com/repos/mojaloop/project/issues/479/events","html_url":"https://github.com/mojaloop/project/issues/479","id":364304646,"node_id":"MDU6SXNzdWUzNjQzMDQ2NDY=","number":479,"title":"GET /settlements - without passing any params","user":{"login":"sri-miriyala","id":38143240,"node_id":"MDQ6VXNlcjM4MTQzMjQw","avatar_url":"https://avatars3.githubusercontent.com/u/38143240?v=4","gravatar_id":"","url":"https://api.github.com/users/sri-miriyala","html_url":"https://github.com/sri-miriyala","followers_url":"https://api.github.com/users/sri-miriyala/followers","following_url":"https://api.github.com/users/sri-miriyala/following{/other_user}","gists_url":"https://api.github.com/users/sri-miriyala/gists{/gist_id}","starred_url":"https://api.github.com/users/sri-miriyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sri-miriyala/subscriptions","organizations_url":"https://api.github.com/users/sri-miriyala/orgs","repos_url":"https://api.github.com/users/sri-miriyala/repos","events_url":"https://api.github.com/users/sri-miriyala/events{/privacy}","received_events_url":"https://api.github.com/users/sri-miriyala/received_events","type":"User","site_admin":false},"labels":[{"id":798057396,"node_id":"MDU6TGFiZWw3OTgwNTczOTY=","url":"https://api.github.com/repos/mojaloop/project/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"ggrg","id":20338055,"node_id":"MDQ6VXNlcjIwMzM4MDU1","avatar_url":"https://avatars3.githubusercontent.com/u/20338055?v=4","gravatar_id":"","url":"https://api.github.com/users/ggrg","html_url":"https://github.com/ggrg","followers_url":"https://api.github.com/users/ggrg/followers","following_url":"https://api.github.com/users/ggrg/following{/other_user}","gists_url":"https://api.github.com/users/ggrg/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrg/subscriptions","organizations_url":"https://api.github.com/users/ggrg/orgs","repos_url":"https://api.github.com/users/ggrg/repos","events_url":"https://api.github.com/users/ggrg/events{/privacy}","received_events_url":"https://api.github.com/users/ggrg/received_events","type":"User","site_admin":false},"assignees":[{"login":"ggrg","id":20338055,"node_id":"MDQ6VXNlcjIwMzM4MDU1","avatar_url":"https://avatars3.githubusercontent.com/u/20338055?v=4","gravatar_id":"","url":"https://api.github.com/users/ggrg","html_url":"https://github.com/ggrg","followers_url":"https://api.github.com/users/ggrg/followers","following_url":"https://api.github.com/users/ggrg/following{/other_user}","gists_url":"https://api.github.com/users/ggrg/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrg/subscriptions","organizations_url":"https://api.github.com/users/ggrg/orgs","repos_url":"https://api.github.com/users/ggrg/repos","events_url":"https://api.github.com/users/ggrg/events{/privacy}","received_events_url":"https://api.github.com/users/ggrg/received_events","type":"User","site_admin":false},{"login":"sri-miriyala","id":38143240,"node_id":"MDQ6VXNlcjM4MTQzMjQw","avatar_url":"https://avatars3.githubusercontent.com/u/38143240?v=4","gravatar_id":"","url":"https://api.github.com/users/sri-miriyala","html_url":"https://github.com/sri-miriyala","followers_url":"https://api.github.com/users/sri-miriyala/followers","following_url":"https://api.github.com/users/sri-miriyala/following{/other_user}","gists_url":"https://api.github.com/users/sri-miriyala/gists{/gist_id}","starred_url":"https://api.github.com/users/sri-miriyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sri-miriyala/subscriptions","organizations_url":"https://api.github.com/users/sri-miriyala/orgs","repos_url":"https://api.github.com/users/sri-miriyala/repos","events_url":"https://api.github.com/users/sri-miriyala/events{/privacy}","received_events_url":"https://api.github.com/users/sri-miriyala/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-09-27T04:54:06Z","updated_at":"2018-09-27T17:32:00Z","closed_at":null,"author_association":"NONE","body":"Priority: Medium\r\nTool : Postman\r\nAPI : Settlements\r\nEndpoint: GET /settlements\r\nDescription:\r\nWhen I'm trying to call the GET /settlements without passing any parameters, it is failing as expected but in the response error msg it is not giving any meaningful error information back.\r\nBelow are the request and responses from postman.\r\nRequest :\r\ncurl -X GET \r\nhttp://test-central-settlement.mojaloop.live/v1/settlements \r\n-H 'Cache-Control: no-cache' \r\n-H 'Postman-Token: 0abf4700-af3e-57eb-60e2-07509362142c'\r\nResponse:\r\n{ \"statusCode\": 404, \"error\": \"Not Found\", \"message\": \"Cannot read property 'find' of undefined\" }\r\nExpected response:\r\nA meaningful error msg in response, for all the errors as per the missing fields.\r\n\r\nAcceptance Criteria:\r\nError msg should be appropriate and should give information which fields are missing in the request. \r\nEx: Atleast one parameter is required."},"comment":{"url":"https://api.github.com/repos/mojaloop/project/issues/comments/425177744","html_url":"https://github.com/mojaloop/project/issues/479#issuecomment-425177744","issue_url":"https://api.github.com/repos/mojaloop/project/issues/479","id":425177744,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTE3Nzc0NA==","user":{"login":"sri-miriyala","id":38143240,"node_id":"MDQ6VXNlcjM4MTQzMjQw","avatar_url":"https://avatars3.githubusercontent.com/u/38143240?v=4","gravatar_id":"","url":"https://api.github.com/users/sri-miriyala","html_url":"https://github.com/sri-miriyala","followers_url":"https://api.github.com/users/sri-miriyala/followers","following_url":"https://api.github.com/users/sri-miriyala/following{/other_user}","gists_url":"https://api.github.com/users/sri-miriyala/gists{/gist_id}","starred_url":"https://api.github.com/users/sri-miriyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sri-miriyala/subscriptions","organizations_url":"https://api.github.com/users/sri-miriyala/orgs","repos_url":"https://api.github.com/users/sri-miriyala/repos","events_url":"https://api.github.com/users/sri-miriyala/events{/privacy}","received_events_url":"https://api.github.com/users/sri-miriyala/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T17:32:00Z","updated_at":"2018-09-27T17:32:00Z","author_association":"NONE","body":"Got it... central settlements is 3.5.0 \r\nand central ledger is 3.6.1"}}
{"actor":{"display_login":"sri-miriyala"}}