Skip to content

An API REST built with Express.js, Node.js and TypeScript.

Notifications You must be signed in to change notification settings

marcgirbaub/gamelab-back

Repository files navigation

Gamelab

Quality Gate Status Coverage Technical Debt

Links

Front

Back

Endpoints

USER

POST /users/register

  • create an account in the application
  • response 201
  • no response body

POST /users/login

  • fetch user token
  • response 200
  • token in response body

VIDEOGAMES

GET /games

  • fetch a list of games
  • response 200
  • games list in response body

GET /games?filter=filter

  • fetch a list of games that match filter
  • response 200
  • games list in response body

Protected endpoints

VIDEOGAMES

GET /games/:gameId

  • fetch a single game
  • response 200
  • game in response body

POST /games/create

  • add a new game to the database
  • response 201
  • send new game in multipart/form-data
  • new game in response body

DELETE /games/delete/:gameId

  • delete a game from the database
  • response 200
  • deleted game in response body

PUT /games/update/:gameId

  • update a game's information
  • response 201
  • send changes in multipart/form-data
  • updated game in response body

GET /games/mygame

  • fetch a list of your own games
  • response 200
  • games list in response body

About

An API REST built with Express.js, Node.js and TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published