Wolfinbarger / game-recommender

A full-stack web app that helps you discover awesome games to play with your friends or solo.
0 stars 0 forks source link

Issue 11: Create GET API Endpoint to Return All Video Games #14

Closed FreakyNobleGas closed 1 year ago

FreakyNobleGas commented 1 year ago

Issue: #11

Added GET endpoint to return all video games. At the moment, this list of video games is mock data from data/fake_games_dataset.json. I created generate_fake_games.py to generate this fake data.

Additionally, I created a model to represent Game, Platforms, and Multiplayer. I think the Game class will end up holding a lot of information, so following this pattern where we encapsulate some of the information in separate classes (e.g. multiplayer) could be a good idea.

Picture of JSON returned by endpoint /api/games

image