{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11607","labels_url":"https://api.github.com/repos/docker/docker/issues/11607/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11607/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11607/events","html_url":"https://github.com/docker/docker/issues/11607","id":63603397,"number":11607,"title":"The api route postAuth does not have a structured response type","user":{"login":"crosbymichael","id":749551,"avatar_url":"https://avatars.githubusercontent.com/u/749551?v=3","gravatar_id":"","url":"https://api.github.com/users/crosbymichael","html_url":"https://github.com/crosbymichael","followers_url":"https://api.github.com/users/crosbymichael/followers","following_url":"https://api.github.com/users/crosbymichael/following{/other_user}","gists_url":"https://api.github.com/users/crosbymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/crosbymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosbymichael/subscriptions","organizations_url":"https://api.github.com/users/crosbymichael/orgs","repos_url":"https://api.github.com/users/crosbymichael/repos","events_url":"https://api.github.com/users/crosbymichael/events{/privacy}","received_events_url":"https://api.github.com/users/crosbymichael/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/exp/beginner","name":"exp/beginner","color":"A8DBA8"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"},{"url":"https://api.github.com/repos/docker/docker/labels/status/claimed","name":"status/claimed","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T02:10:55Z","updated_at":"2015-03-23T21:19:46Z","closed_at":null,"body":"**Problem**\r\n \r\nThe api route postAuth does not have a structured response type\r\n \r\n**Solution**\r\n \r\nCreate a struct type in the `/api/types/types.go` file that specifies the response of the `postAuth` function in\r\n`/api/server/server.go` and use that type to encode the response on the server side and decode into that struct\r\non the client side of the api in `/api/client/commands.go`."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/85202396","html_url":"https://github.com/docker/docker/issues/11607#issuecomment-85202396","issue_url":"https://api.github.com/repos/docker/docker/issues/11607","id":85202396,"user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T21:19:45Z","updated_at":"2015-03-23T21:19:45Z","body":"#dibs"}}