-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation for Practice App Achievement By Game Id
Ali Başaran edited this page May 12, 2023
·
3 revisions
- Endpoint: /api/v1/games/achievement
- Definition: Requests the data for the achievements from a third party API based on the given game id. After, it selects the least completed 3 achievements of the game after getting the data. It also finds the name of the game according to game id, which is not defined at third party api. Then, posts the least completed 3 achievements and the name of the game to the data base
- Query Parameters: None
- Body Data: userEmail:string (it is required), gameid:string(it is required)
- Example Request Query:
http://ec2-16-16-200-79.eu-north-1.compute.amazonaws.com:3001/api/v1/games/achievement
- Example Request Body:
{
"userEmail": "[email protected]",
"gameid": "400"
}
- Example Response Body:
{
"status": "success",
"message": "Least completed achievements are inserted to database successfully"
}
- Endpoint: /api/v1/games/achievement
- Definition: Returns the least completed achievements and game names that are added to the database for the user with email as userEmail
- Query Parameters: userEmail: string (it is required)
- Body Data: None
- Example Request Query:
http://ec2-16-16-200-79.eu-north-1.compute.amazonaws.com:3001/api/v1/games/achievement/[email protected]
- Example Request Body: None
- Example Response Body:
[
{
"achievement_1": {
"name": "ACHIEVEMENT_ALL",
"success_rate": 5.099999904632568
},
"achievement_2": {
"name": "ACHIEVEMENT_24",
"success_rate": 6.900000095367432
},
"achievement_3": {
"name": "ACHIEVEMENT_25",
"success_rate": 6.900000095367432
},
"game_id": 1593500,
"user_email": "[email protected]",
"game_name": "God of War",
"createdAt": "2023-05-12T14:07:47.127Z"
},
{
"achievement_1": {
"name": "GUN_GAME_ROUNDS_HIGH",
"success_rate": 1.7000000476837158
},
"achievement_2": {
"name": "WIN_GUN_GAME_ROUNDS_EXTREME",
"success_rate": 1.7000000476837158
},
"achievement_3": {
"name": "WIN_GUN_GAME_ROUNDS_ULTIMATE",
"success_rate": 1.7000000476837158
},
"game_id": 730,
"user_email": "[email protected]",
"game_name": "Counter-Strike: Global Offensive",
"createdAt": "2023-05-12T14:07:33.727Z"
},
{
"achievement_1": {
"name": "DOD_ALL_PACK_1",
"success_rate": 2.4000000953674316
},
"achievement_2": {
"name": "DOD_BOMBS_DEFUSED_GRIND",
"success_rate": 2.799999952316284
},
"achievement_3": {
"name": "DOD_WEAPON_MASTERY",
"success_rate": 3
},
"game_id": 300,
"user_email": "[email protected]",
"game_name": "Day of Defeat: Source",
"createdAt": "2023-05-12T14:07:27.603Z"
},
{
"achievement_1": {
"name": "PORTAL_GET_ALLBRONZE",
"success_rate": 2.299999952316284
},
"achievement_2": {
"name": "PORTAL_GET_ALLSILVER",
"success_rate": 2.299999952316284
},
"achievement_3": {
"name": "PORTAL_GET_ALLGOLD",
"success_rate": 2.299999952316284
},
"game_id": 400,
"user_email": "[email protected]",
"game_name": "Portal",
"createdAt": "2023-05-12T14:06:47.590Z"
}
]
Cmpe 352
Cmpe 451
Cmpe 352
Milestone 1
Final Milestone
Milestone 1
Milestone 2
Final Milestone
- Authentication Mockup
- Forum Mockup
- Game Reviews Mockup
- Games Page Mockup
- Group Page Mockup
- Home Page Mockup
- Profile Page Mockup
- Unregistered User Scenario: Sign Up
- Unregistered User Scenario: Search for a Game and Browse the Game Forum
- Registered User Scenario: Create Post in a Game Forum
- Registered User Scenario: Search For Groups and Join A Group
📝 RAM
- Issue Template
- Personal Information Template
- Meeting Note Template
- Contributions Template
- API Documentation Template
API Documentation for Practice App
- Top Games
- Yugioh Card
- Hearthstone Card
- Games By User
- Game Reviews
- Games By Genre
- Games By Category
- Game Suggestions
- Esport Tournaments
- Achievement By Game Id
- Rock Paper Scissors
- Game By Deal