Beat'em UPI

Examples

Get all games info:

fetch("https://raw.githubusercontent.com/s-pyadyshev/beat-em-ups-api/master/db.json")
  .then(result => result.json())
  .then(data => data);

Get all games names:

fetch("https://raw.githubusercontent.com/s-pyadyshev/beat-em-ups-api/master/db.json")
  .then(result => result.json())
  .then(data => data.map(game => game.name));

Get all games with 4 players:

fetch("https://raw.githubusercontent.com/s-pyadyshev/beat-em-ups-api/master/db.json")
  .then(result => result.json())
  .then(data => data.filter(game => game.players === 4));