Random Game API #212
Labels
effort : high
This issue can take a significant amount of time
priority : high
Job needs to be completed at most two days
status : completed
Issue is completed
type : development
Updates and enhancements on the application
Milestone
Issue Description
Task
I will use Steam API to fetch random game from its library. I thought it will be nice to have function to suggest a random game. I am inspired by XBOX Game Pass suggestion feature. My API will send request to the public API (https://api.steampowered.com/ISteamApps/GetAppList/v2/). It will send a JSON object and my API will choose a random game from this object. And another function will add this game to the database. My functionalities are:
Views
Endpoints
I will utilize the following endpoints
/random-game
is aPOST
method that returns a random game from Steam library and adds it to the database./random-game/history
is aGET
method that returns random game history of the user.Model
To store the random games, I will create a
randomGame
schema following the corresponding columns:appId
is the id of the game on Steamname
is the name of the random gameshortDescription
is a string short description of the game.headerImage
is the link to the image of the game.price
is the price of the game. It is stored as a stringemail
is the email of the user.Tests
I will test get and post method.
Swagger Documentation
I will provide swagger documentation for the routes.
Tasks
Parts of the task:
/random-game
endpoint./random-game/history
endpoint.Extra Comments
No response
Final Step
After finishing the task, I will create a pull request.
Deadline of the Issue
12.05.2023 - 12:00
Reviewer
Deadline for the Review
12.05.2023 - 20:00
The text was updated successfully, but these errors were encountered: