{"action":"created","issue":{"url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/117","repository_url":"https://api.github.com/repos/CityWebConsultants/Iris","labels_url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/117/comments","events_url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/117/events","html_url":"https://github.com/CityWebConsultants/Iris/issues/117","id":140645035,"number":117,"title":"Entity /fetch is broken","user":{"login":"pau1m","id":431223,"avatar_url":"https://avatars.githubusercontent.com/u/431223?v=3","gravatar_id":"","url":"https://api.github.com/users/pau1m","html_url":"https://github.com/pau1m","followers_url":"https://api.github.com/users/pau1m/followers","following_url":"https://api.github.com/users/pau1m/following{/other_user}","gists_url":"https://api.github.com/users/pau1m/gists{/gist_id}","starred_url":"https://api.github.com/users/pau1m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pau1m/subscriptions","organizations_url":"https://api.github.com/users/pau1m/orgs","repos_url":"https://api.github.com/users/pau1m/repos","events_url":"https://api.github.com/users/pau1m/events{/privacy}","received_events_url":"https://api.github.com/users/pau1m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-14T11:19:16Z","updated_at":"2016-03-18T10:41:39Z","closed_at":null,"body":"Does not check credentials.\r\nDoes not parse entity as array.\r\nLogic around failures is muddled (falls through and attempts to set multiple response headers)."},"comment":{"url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/comments/198300566","html_url":"https://github.com/CityWebConsultants/Iris/issues/117#issuecomment-198300566","issue_url":"https://api.github.com/repos/CityWebConsultants/Iris/issues/117","id":198300566,"user":{"login":"FilipNest","id":4625324,"avatar_url":"https://avatars.githubusercontent.com/u/4625324?v=3","gravatar_id":"","url":"https://api.github.com/users/FilipNest","html_url":"https://github.com/FilipNest","followers_url":"https://api.github.com/users/FilipNest/followers","following_url":"https://api.github.com/users/FilipNest/following{/other_user}","gists_url":"https://api.github.com/users/FilipNest/gists{/gist_id}","starred_url":"https://api.github.com/users/FilipNest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FilipNest/subscriptions","organizations_url":"https://api.github.com/users/FilipNest/orgs","repos_url":"https://api.github.com/users/FilipNest/repos","events_url":"https://api.github.com/users/FilipNest/events{/privacy}","received_events_url":"https://api.github.com/users/FilipNest/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T10:41:39Z","updated_at":"2016-03-18T10:41:39Z","body":"Here's an entity fetch for users (server running at localhost:1000 change where needed).  You'll need to change iris.credentials and set the relevant \"can fetch via api... \" permission in the Iris system itself.\r\n\r\n```html\r\n\r\n<script src=\"https://cdn.socket.io/socket.io-1.4.5.js\"></script>\r\n<script src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.0/angular.min.js\"></script>\r\n<script src=\"http://localhost:1000/modules/entity/templates.js\"></script>\r\n<script src=\"http://localhost:1000/modules/angular_live_load/angular_live_load_client.js\"></script>\r\n\r\n<script>\r\n\r\n  iris.server = \"http://localhost:1000\";\r\n\r\n  iris.credentials = {\r\n    userid: 1,\r\n    \"token\": \"bb3ce19fd0f38df18d9cda4f116aa195\"\r\n  };\r\n\r\n  iris.fetchEntities(\"users\", {\r\n\r\n    entities: [\"user\"],\r\n    sort: {\r\n      \"username\": \"asc\"\r\n    },\r\n    limit: 2,\r\n    skip: 0\r\n\r\n  })\r\n\r\n</script>\r\n\r\n\r\n<div ng-controller=\"iris-template\" ng-iris-template=\"users\">\r\n\r\n  <ul>\r\n    <li ng-repeat=\"user in users\">{{user.username}}</li>\r\n\r\n  </ul>\r\n\r\n</div>\r\n\r\n\r\n```"}}