-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation for Practice App Rock Paper Scissors
harunsami edited this page May 12, 2023
·
3 revisions
- Endpoint: /api/v1/games/choice
- Definition: Requests the data for a Rock Paper Scissors game choice from a third party API and inserts them into the database
- Query Parameters: None
- Body Data: userEmail:string (it is required) , choice:string (it is required)
- Example Request Query:
http://localhost:3001/api/v1/games/choice
- Example Request Body:
{
"choice":"paper"
"userEmail":"[email protected]"
}
- Example Response Body:
{
"status": "success",
"message": "Game info is inserted to database successfully"
}
- Endpoint: /api/v1/games/choice
- Definition: Returns information about the Rock Paper Scissors games 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://localhost:3001/api/v1/games/[email protected]
- Example Request Body: None
- Example Response Body:
[
{
"user_email": "a@a"
"user_choice": "scissors"
"user_beats": "paper"
"ai_choice": "paper"
"ai_beats": "rock"
"result": "You win"
}
]
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