{"action":"opened","issue":{"url":"https://api.github.com/repos/bmun/huxley/issues/510","repository_url":"https://api.github.com/repos/bmun/huxley","labels_url":"https://api.github.com/repos/bmun/huxley/issues/510/labels{/name}","comments_url":"https://api.github.com/repos/bmun/huxley/issues/510/comments","events_url":"https://api.github.com/repos/bmun/huxley/issues/510/events","html_url":"https://github.com/bmun/huxley/issues/510","id":173669776,"number":510,"title":"Add ServerAPI module to abstract away AJAX calls","user":{"login":"kmeht","id":1120478,"avatar_url":"https://avatars.githubusercontent.com/u/1120478?v=3","gravatar_id":"","url":"https://api.github.com/users/kmeht","html_url":"https://github.com/kmeht","followers_url":"https://api.github.com/users/kmeht/followers","following_url":"https://api.github.com/users/kmeht/following{/other_user}","gists_url":"https://api.github.com/users/kmeht/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeht/subscriptions","organizations_url":"https://api.github.com/users/kmeht/orgs","repos_url":"https://api.github.com/users/kmeht/repos","events_url":"https://api.github.com/users/kmeht/events{/privacy}","received_events_url":"https://api.github.com/users/kmeht/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bmun/huxley/labels/code%20cleanup","name":"code cleanup","color":"bfd4f2"},{"url":"https://api.github.com/repos/bmun/huxley/labels/frontend","name":"frontend","color":"fbca04"},{"url":"https://api.github.com/repos/bmun/huxley/labels/refactor","name":"refactor","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-28T21:46:18Z","updated_at":"2016-08-28T21:46:18Z","closed_at":null,"body":"Right now we're doing `$.ajax()` calls all over the codebase when we want to hit one of the server APIs, including writing the URI everywhere manually. Instead, we should have a `ServerAPI` module that takes care of this for us. Its public interface would have methods like `updateSchool`, `login`, `logout`, `deleteDelegate`, etc.\r\n\r\nAn important benefit is that if anything changes in how we interact with the server API (e.g. URIs change, we switch from jQuery to something else), the change only needs to be made in one place."}}
{"actor":{"display_login":"kmeht"}}