Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - Add Application Routes #10

Open
FedeLochbaum opened this issue May 26, 2019 · 0 comments
Open

[FEATURE] - Add Application Routes #10

FedeLochbaum opened this issue May 26, 2019 · 0 comments

Comments

@FedeLochbaum
Copy link

FedeLochbaum commented May 26, 2019

It's decided to use the following routes/endpoints:

  • User
    • GET /users/:user_id, returns a User if exists.
    • POST /users/, returns a new created User if was created correctly (with games?).
    • PUT /users/:user_id, returns the updated User if exists.
    • DELETE /users/:user_id, returns something?
    • POST /users/login, same as create user!
  • Game
    • GET /users/:user_id/games, returns current games for that user if exists.
    • GET /users/:user_id/games/:game_id, returns a game for that user if exists.
    • POST /users/:user_id/games, returns a new created game for that user if was created correctly.
    • PUT /users/:user_id/games/:game_id, returns the updated game of that user if exists.
    • DELETE /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.

@LaimeJesus LaimeJesus changed the title Get Current games/factories [FEATURE] - Add Application Routes Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant