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
We've created many routes for the application but we're not following any standard so we should set some and follow it. For example, deletes doesn't return anything.
The text was updated successfully, but these errors were encountered:
It's decided to use the following routes/endpoints:
/users/:user_id
, returns aUser
if exists./users/
, returns a new createdUser
if was created correctly (with games?)./users/:user_id
, returns the updatedUser
if exists./users/:user_id
, returns something?/users/login
, same as create user!/users/:user_id/games
, returns current games for that user if exists./users/:user_id/games/:game_id
, returns a game for that user if exists./users/:user_id/games
, returns a new created game for that user if was created correctly./users/:user_id/games/:game_id
, returns the updated game of that user if exists./users/:user_id/games/:game_id
, returns something?We've created many routes for the application but we're not following any standard so we should set some and follow it. For example,
deletes
doesn't return anything.The text was updated successfully, but these errors were encountered: