{"action":"opened","issue":{"url":"https://api.github.com/repos/DjangoChained/TweetBook/issues/39","repository_url":"https://api.github.com/repos/DjangoChained/TweetBook","labels_url":"https://api.github.com/repos/DjangoChained/TweetBook/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/DjangoChained/TweetBook/issues/39/comments","events_url":"https://api.github.com/repos/DjangoChained/TweetBook/issues/39/events","html_url":"https://github.com/DjangoChained/TweetBook/issues/39","id":299498940,"number":39,"title":"Implémenter la connexion par JSON","user":{"login":"Lucidiot","id":15960782,"avatar_url":"https://avatars2.githubusercontent.com/u/15960782?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucidiot","html_url":"https://github.com/Lucidiot","followers_url":"https://api.github.com/users/Lucidiot/followers","following_url":"https://api.github.com/users/Lucidiot/following{/other_user}","gists_url":"https://api.github.com/users/Lucidiot/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucidiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucidiot/subscriptions","organizations_url":"https://api.github.com/users/Lucidiot/orgs","repos_url":"https://api.github.com/users/Lucidiot/repos","events_url":"https://api.github.com/users/Lucidiot/events{/privacy}","received_events_url":"https://api.github.com/users/Lucidiot/received_events","type":"User","site_admin":false},"labels":[{"id":800249030,"url":"https://api.github.com/repos/DjangoChained/TweetBook/labels/feature","name":"feature","color":"0e8a16","default":false},{"id":800423273,"url":"https://api.github.com/repos/DjangoChained/TweetBook/labels/high%20priority","name":"high priority","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T20:35:42Z","updated_at":"2018-02-22T20:35:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Faire le parsing de données JSON reçues du type\r\n``` json\r\n{\r\n    \"email\": \"bob@bob.fr\",\r\n    \"password\": \"bobby\"\r\n}\r\n```\r\nRenvoyer en cas de succès\r\n``` javascript\r\n{\r\n    \"status\": \"success\",\r\n    \"id\": \"23\" // ID utilisateur\r\n}\r\n```\r\nRenvoyer en cas d'erreur, par exemple\r\n``` json\r\n{\r\n    \"status\": \"error\",\r\n    \"message\": \"E-mail ou mot de passe incorrect\"\r\n}\r\n```"}}
{"actor":{"display_login":"Lucidiot"}}