{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/39","labels_url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/39/comments","events_url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/39/events","html_url":"https://github.com/mozilla-services/cliquetis/pull/39","id":92089139,"number":39,"title":"Fixes #11 - Fetch and validate server protocol version.","user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-30T13:10:19Z","updated_at":"2015-07-01T09:32:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla-services/cliquetis/pulls/39","html_url":"https://github.com/mozilla-services/cliquetis/pull/39","diff_url":"https://github.com/mozilla-services/cliquetis/pull/39.diff","patch_url":"https://github.com/mozilla-services/cliquetis/pull/39.patch"},"body":"Refs #11.\r\n\r\n- [x] Fetch the protocol version from the server out of the `url` field from the JSON response on `/`\r\n- [x] Validate that the fetched protocol version matches client supported one \r\n- [x] Update `Api#fetchChangesSince` to ensure protocol version validation is performed\r\n- [x] Update `Api#batch` to ensure protocol version validation is performed\r\n- [x] Cache the fetched protocol version information locally to avoid performing unnecessary requests\r\n- [x] Update docs\r\n- [x] Update demo code\r\n\r\nThis issue is currently being discussed, hold on merging. Read below."},"comment":{"url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/comments/117561371","html_url":"https://github.com/mozilla-services/cliquetis/pull/39#issuecomment-117561371","issue_url":"https://api.github.com/repos/mozilla-services/cliquetis/issues/39","id":117561371,"user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T09:32:03Z","updated_at":"2015-07-01T09:32:03Z","body":"My take is to ask for ``rootPath`` (``scheme://hostname/supported_version/``) and see if we've got a 404 unsupported response."}}