Skip to content

Latest commit

 

History

History
125 lines (100 loc) · 3.42 KB

README.md

File metadata and controls

125 lines (100 loc) · 3.42 KB

API World Cup 22

Description

Project of a Rest API in node.js, to answer information about World Cup 22, in relation to groups, teams and games

🛠 Technologies

The tools used in the project are:


Documentation

Group Routes

Returns a group

  GET /get/group/${idGroup}
  Authorization: ${Token}
Parâmetro Tipo Descrição
idGroup string Required. ID of group you want
Token string Required. Your account Token

  GET /get/group/?name=${nameGroup}
  Authorization: ${Token}
Parameter Type Description
nameGroup string For search in database using group name instead of ID
Token string Required. Your account Token

Returns all groups

  GET /get/groups/
  Authorization: ${Token}
Parameter Type Description
Token string Required. Your account Token

Team Routes

Returns a team

  GET /get/team/${idTeam}
  Authorization: ${Token}
Parameter Type Description
idTeam string Required. ID of team you want
Token string Required. Your account Token

  GET /get/team/?name=${nameTeam}
  Authorization: ${Token}
Parameter Type Description
nameTeam string For search in database using group name instead of ID
Token string Required. Your account Token

Returns all teams

  GET /get/teams
  Authorization: ${Token}
Parameter Type Description
Token string Required. Your account Token

Returns all teams in a group

  GET /get/teams/?group={groupName}
  Authorization: ${Token}
Parameter Type Description
groupName string Name of the group from which you want the teams
Token string Required. Your account Token

Game Routes

Returns a game

  GET get/game/:${idGame}
  Authorization: ${Token}
Parameter Type Description
idGame string Required. ID of game you want
Token string Required. Your account Token

Returns all game

  GET /get/games/
  Authorization: ${Token}
Parameter Type Description
Token string Required. Your account Token

Author



Jorge CP
🚀

Made with ❤️ by JP2435 👋🏼 Contact!

Twitter Badge Gmail Badge