You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation is not clear on the hangman API for requests that need a body. Although the request body is illustrated in the format { token: game token, letter: guess }, the application actually takes data in x-www-form-urlencoded, so the request should be something like:
The tutorial definitely doesn't make this clear enough, but moreover I suggest that we should change the application so that it accepts JSON. This would be more inkeeping with the previous tutorial and way more common than form parameters in the world of APIs. This pull request illustrates how this might be done on the PUT request only. If others agree that this approach is good, I'm happy to complete the change.
samsworldofno
changed the title
Hangman game in JS lesson 5 does not work / documentation is not clear
Hangman game in JS lesson 5 documentation is not clear
Apr 13, 2016
@samsworldofno could you add some details about this issue?
The text was updated successfully, but these errors were encountered: