{"action":"opened","issue":{"url":"https://api.github.com/repos/reminisceme/backend/issues/37","labels_url":"https://api.github.com/repos/reminisceme/backend/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/reminisceme/backend/issues/37/comments","events_url":"https://api.github.com/repos/reminisceme/backend/issues/37/events","html_url":"https://github.com/reminisceme/backend/issues/37","id":53340140,"number":37,"title":"Endpoints expects form data rather than JSON","user":{"login":"romac","id":106849,"avatar_url":"https://avatars.githubusercontent.com/u/106849?v=3","gravatar_id":"","url":"https://api.github.com/users/romac","html_url":"https://github.com/romac","followers_url":"https://api.github.com/users/romac/followers","following_url":"https://api.github.com/users/romac/following{/other_user}","gists_url":"https://api.github.com/users/romac/gists{/gist_id}","starred_url":"https://api.github.com/users/romac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romac/subscriptions","organizations_url":"https://api.github.com/users/romac/orgs","repos_url":"https://api.github.com/users/romac/repos","events_url":"https://api.github.com/users/romac/events{/privacy}","received_events_url":"https://api.github.com/users/romac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-04T16:03:05Z","updated_at":"2015-01-04T16:03:05Z","closed_at":null,"body":"Some endpoints (at least the ones in `js_views/jsonRequest.py`) read incoming data (such as `opponentId` for the `NewJoinRequest` view) from `request.POST` rather than from the JSON sent inside of the request body, which should be accessed and parsed through `request.body`.\r\n\r\nTwo options here:\r\n\r\n1. Adapt the endpoints to match what's documented [on the wiki](https://github.com/reminisceme/backend/wiki/JSON-Endpoints).\r\n2. Adapt the web client to send request data as form data rather than a JSON body."}}