Skip to content

lcsales98/code-challenge-moobi

 
 

Repository files navigation

#code challenge moobi

Esta versão segue as recomenações pedidas no challenge, além de unit tests.

API REF

Verbo http URL parâmetros Descrição "body" Resposta
GET /api/consoles - Lista de todos os video-games - { success: boolean, data: arrayOf({ id: string, name: string, company: string }) }
POST /api/consoles - Cria video-games { name: string, company: string } { success: boolean, data: { id: string, name: string, company: string } }
GET /api/consoles/:consoleId consoleId Detalhes do video-game, contendo todos os jogos - { success: boolean, data: { id: string, name: string, company: string, games: arrayOf({ id: string, name: string, console_id: string, console_name: string }) }
PUT /api/consoles/:consoleId consoleId Atualiza um video-game { name: string, company: string } { success: boolean, data: { id: string, name: string, company: string } }
DELETE /api/consoles/:consoleId consoleId Deleta um video-game - { success: boolean, data: { id: string, name: string, company: string } }
GET /api/games - Lista de todos os jogos - { success: boolean, data: arrayOf({ id: string, name: string, console_id: string, console_name: string }) }
POST /api/games - Cria Jogo { name: string, console_id: string, console_name: string } { success: boolean, data: { id: string, name: string, console_id: string, console_name: string } }
GET /api/games/:gameId gameId Detalhes do jogo, contendo todos os consoles para que foi lançado - { success: boolean, data: { id: string, name: string, console_id: string, console_name: string } }
PUT /api/games/:gameId gameId Atualiza um jogo { name: string } { success: boolean, data: { id: string, name: string, console_id: string, console_name: string } }
DELETE /api/games/:gameId gameId Deleta um jogo - { success: boolean, data: { id: string, name: string, console_id: string, console_name: string } }

code coverage

code coverage

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.6%
  • JavaScript 1.4%