{"action":"closed","issue":{"url":"https://api.github.com/repos/peerpx/peerpx/issues/9","repository_url":"https://api.github.com/repos/peerpx/peerpx","labels_url":"https://api.github.com/repos/peerpx/peerpx/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/peerpx/peerpx/issues/9/comments","events_url":"https://api.github.com/repos/peerpx/peerpx/issues/9/events","html_url":"https://github.com/peerpx/peerpx/issues/9","id":328140100,"node_id":"MDU6SXNzdWUzMjgxNDAxMDA=","number":9,"title":"Route for basic User management","user":{"login":"kappuccino","id":1203963,"node_id":"MDQ6VXNlcjEyMDM5NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1203963?v=4","gravatar_id":"","url":"https://api.github.com/users/kappuccino","html_url":"https://github.com/kappuccino","followers_url":"https://api.github.com/users/kappuccino/followers","following_url":"https://api.github.com/users/kappuccino/following{/other_user}","gists_url":"https://api.github.com/users/kappuccino/gists{/gist_id}","starred_url":"https://api.github.com/users/kappuccino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kappuccino/subscriptions","organizations_url":"https://api.github.com/users/kappuccino/orgs","repos_url":"https://api.github.com/users/kappuccino/repos","events_url":"https://api.github.com/users/kappuccino/events{/privacy}","received_events_url":"https://api.github.com/users/kappuccino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"toorop","id":514704,"node_id":"MDQ6VXNlcjUxNDcwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/514704?v=4","gravatar_id":"","url":"https://api.github.com/users/toorop","html_url":"https://github.com/toorop","followers_url":"https://api.github.com/users/toorop/followers","following_url":"https://api.github.com/users/toorop/following{/other_user}","gists_url":"https://api.github.com/users/toorop/gists{/gist_id}","starred_url":"https://api.github.com/users/toorop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toorop/subscriptions","organizations_url":"https://api.github.com/users/toorop/orgs","repos_url":"https://api.github.com/users/toorop/repos","events_url":"https://api.github.com/users/toorop/events{/privacy}","received_events_url":"https://api.github.com/users/toorop/received_events","type":"User","site_admin":false},"assignees":[{"login":"toorop","id":514704,"node_id":"MDQ6VXNlcjUxNDcwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/514704?v=4","gravatar_id":"","url":"https://api.github.com/users/toorop","html_url":"https://github.com/toorop","followers_url":"https://api.github.com/users/toorop/followers","following_url":"https://api.github.com/users/toorop/following{/other_user}","gists_url":"https://api.github.com/users/toorop/gists{/gist_id}","starred_url":"https://api.github.com/users/toorop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toorop/subscriptions","organizations_url":"https://api.github.com/users/toorop/orgs","repos_url":"https://api.github.com/users/toorop/repos","events_url":"https://api.github.com/users/toorop/events{/privacy}","received_events_url":"https://api.github.com/users/toorop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-31T13:32:31Z","updated_at":"2018-06-04T12:19:25Z","closed_at":"2018-06-04T12:19:25Z","author_association":"COLLABORATOR","body":"This is a proposition about some router need to handle a user\r\n\r\n**/login**\r\nsend `login` and `password`\r\nreturn 200 if everything is correct and a JSON object in the body\r\nreturn 500 (?) if the login fails ? (not sure about that one)\r\n\r\n**/create**\r\nCreate a user, like a registration (new member that enroll himself)\r\nsend `login` and `password`\r\nreturn 200 and a complete user in JSON (like the userid + I-do-not-know-yet)\r\nreturn an error if something happened\r\n\r\n**/update**\r\nWhen a user update himself or an admin edit/save a user\r\nsend a `user struct`\r\nreturn ? something like the updatePhoto ?\r\n\r\nWe need to talk about the cookie/token used to identify the user for a request...\r\n\r\n"}}
{"actor":{"display_login":"kappuccino"}}