Get minimum amount to start a game.
Responses
Code | Description |
---|---|
200 | return startingChips |
500 | Internal server error |
Add a user to a game and returns the game after adding the user.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
id | body | User Id | Yes | number |
body | User Email | Yes | string | |
username | body | User Username | Yes | string |
password | body | User Password | Yes | string |
money | body | User Money | Yes | number |
Responses
Code | Description |
---|---|
200 | return game |
500 | Internal server error |
Proceed an action and returns game after action process.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
gameId | body | Game Id | Yes | number |
userId | body | User Id | Yes | number |
actionType | body | Action played (CALL | FOLD | BET) |
value | body | money bet only if actionType = "BET" | No | number |
Responses
Code | Description |
---|---|
200 | return game |
500 | Internal server error |
Returns the downcards of the user for a game.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
gameId | path | Game Id | Yes | number |
userId | path | User Id | Yes | number |
Responses
Code | Description |
---|---|
200 | return game |
500 | Internal server error |
Returns the downcards of the previous round for the users for a game.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
gameId | path | Game Id | Yes | number |
Responses
Code | Description |
---|---|
200 | return game |
500 | Internal server error |
Returns the community cards of the previous round for a game.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
gameId | path | Game Id | Yes | number |
Responses
Code | Description |
---|---|
200 | return game |
500 | Internal server error |
Returns the community cards of the previous round for a game.
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
userId | path | User Id | Yes | number |
Responses
Code | Description |
---|---|
200 | return stats of user |
500 | Internal server error |