{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/http-client/issues/7","labels_url":"https://api.github.com/repos/aurelia/http-client/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/http-client/issues/7/comments","events_url":"https://api.github.com/repos/aurelia/http-client/issues/7/events","html_url":"https://github.com/aurelia/http-client/issues/7","id":55906820,"number":7,"title":"Intercept calls for Testing","user":{"login":"zewa666","id":2861414,"avatar_url":"https://avatars.githubusercontent.com/u/2861414?v=3","gravatar_id":"","url":"https://api.github.com/users/zewa666","html_url":"https://github.com/zewa666","followers_url":"https://api.github.com/users/zewa666/followers","following_url":"https://api.github.com/users/zewa666/following{/other_user}","gists_url":"https://api.github.com/users/zewa666/gists{/gist_id}","starred_url":"https://api.github.com/users/zewa666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zewa666/subscriptions","organizations_url":"https://api.github.com/users/zewa666/orgs","repos_url":"https://api.github.com/users/zewa666/repos","events_url":"https://api.github.com/users/zewa666/events{/privacy}","received_events_url":"https://api.github.com/users/zewa666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-29T14:41:11Z","updated_at":"2015-01-29T17:12:20Z","closed_at":null,"body":"Angular provides a quite nice service called [ngMockE2E](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend) which enables intercepting any outgoing http calls and responding with mocks.\r\n\r\nNot only is this useful for mocking real requests for testing, but would also allow to do [Backend-less Development](http://cloudspace.com/blog/2014/03/27/backend-less-development-with-angular/#.VMpGZ2iG9VY) which is a really nice thing if your Backend and Frontend team wants to adhere to agreed interfaces.\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/http-client/issues/comments/72063858","html_url":"https://github.com/aurelia/http-client/issues/7#issuecomment-72063858","issue_url":"https://api.github.com/repos/aurelia/http-client/issues/7","id":72063858,"user":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T17:12:20Z","updated_at":"2015-01-29T17:12:20Z","body":"No task needed to swap them out actually. We can use DI to provide an alternate class to use that maps to HttpClient."}}