Version: en

Overview

User Data Schema

All Gameo users will create an account, which is stored in a database cloud sevice called MongoDB Atlas. A typical user in Gameo will have the following data stored:

PropertyTypeDescriptionExample
_idObjectAutomatically generated by MongoDB{$oid: "5f7a2df58b5ab52efb5d55d4"}
nameStringUser's name under accountJohn Doe
emailStringUser's email registered with accountjohndoe@example.com
gamesArrayList of games user has played and added to library[{game_id: 4291, rating: "9", title: "Counter-Strike: Global Offensive"}, {game_id: 23598, rating: "10", title: "League of Legends"}]
wishlistArrayList of games user has added to their wishlistSame as above

Endpoints

Endpoints enables user interaction with the MongoDB Atlas database in order to constantly update their game preferences and store new games that they have added to their library or wishlist.

PyMongo is the Python wrapper for MongoDB to work in Python. See their official documentation here.

MethodEndpointDescriptionTutorial
POST/userCreates a new userCreate User
GET/userGets a userGet User
GET/gameGets game recommendationsGet Recommendations
PATCH/gameAdds a game to user's game library or wishlistAdd Game
PATCH/removeRemoves a game from user's game library or wishlistRemove Game
PATCH/rateUpdates user's rating for a gameRate Game