Skip to content

a simple api to get data of the biggest football leagues , made for microverse students so they cann implement them in their projects

License

Notifications You must be signed in to change notification settings

ichala/football-api-microverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football Api Microverse

a simple api to get data of the biggest football leagues , made for microverse students so they cann implement them in their projects

Built With

  • Express
  • NodeJs
  • MongoDB (Mongoose)
  • JavaScript

Base URL

https://football-apis.herokuapp.com/api/v1

Endpoints

/leagues

example : https://football-apis.herokuapp.com/api/v1/leagues

Allowed actions:

  • Get

Parameters:

  • No parameters required

Response:

"status": 200,
"msg": "Success",
"leagues": [...]

example with axios

 await axios.get('https://football-apis.herokuapp.com/api/v1/leagues')
    .then((response) => {
      leagues = response.data.leagues;
      console.log(leagues); // the response wich contain all the leagues
    });

example with live project

example
App Created by ha-manel using this api

About

a simple api to get data of the biggest football leagues , made for microverse students so they cann implement them in their projects

Topics

Resources

License

Stars

Watchers

Forks