Git Product home page Git Product logo

lion-rest-api's Introduction

timeline
Lion REST API

English Premier League Unofficial RESTful API.

Resource Routes

Clubs

Method Endpoints Auth Description
GET /api/v1/clubs No Retrieve all 20 clubs in current season of English Premier League (EPL).
GET /api/v1/clubs/:id No Retrieve single club in the current season of EPL by id.
GET /api/v1/clubs/:id/stats No Retrieve statistics of the current season of the current [id] EPL club.
GET /api/v1/clubs/:id/stats/:year No Retrieve statistics of the [year] season of the current [id] EPL club.
GET /api/v1/clubs/:id/results No Retrieve match results of the current season of the current [id] EPL club.
GET /api/v1/clubs/:id/results/:year No Retrieve match results of the [year] season of the current [id] EPL club.
GET /api/v1/clubs/:id/players No Retrieve all players registered for the [id] club in the current season.
GET /api/v1/clubs/:id/players/:playerId No Retrieve single player identified by [playerId] playing for the [id] club.

Players

Method Endpoints Auth Description
GET /api/v1/players No Retrieve all players playing in the EPL in the current season.
GET /api/v1/players/:playerId No Retrieve single player playing in the EPL in the current season identified by [playerId].
GET /api/v1/players/:playerId/stats No Retrieve statistics of single player playing in the EPL in the current season identified by [playerId].

Tables

Method Endpoints Auth Description
GET /api/v1/tables No Retrieve up to date competition table of the current season.
GET /api/v1/tables/:yearId No Retrieve up to date competition table of the [yearId] season.

Getting Started

Development

First of all, download and install Node.js. Version 14.7.0 LTS or higher is recommended.

Clone directory:

$ git clone [email protected]:quarterblue/lion-rest-api.git

Frontend:

# Change directory:
$ cd lion-rest-api/frontend/

# Installation:
$ npm install

# Start client server:
$ npm start

Backend:

# Change directory:
$ cd lion-rest-api/backend/

# Installation:
$ yarn install

# Start backend server:
$ yarn start

Then navigate to http://localhost:9001/ on your browser.

File Structure

lion-rest-api
├───.github
│   ├───ISSUE_TEMPLATE
│   └───workflows
├───backend
│   ├───config
│   ├───controllers
│   ├───helpers
│   ├───models
│   └───routes
└───frontend

Documentation

License

lion-rest-api's People

Contributors

minthomas avatar quarterblue avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.