Skip to content

mbmkhize22/rank-casino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rank-casino

Endpoints

H2 Database web console
# use this link to access H2 database management console
http://localhost:8080/h2-console

#JDBC URL: jdbc:h2:mem:casino
Root [GET]
http://localhost:8080/api/v1/player
Current Player Balance [GET]
#http://localhost:8080/api/v1/player/current-balance/{playerId}/{transactionId}
http://localhost:8080/api/v1/player/current-balance/1/1
Wagering [POST]
#http://localhost:8080/api/v1/player/wagering/{playerId}/{transactionId}/{wagerAmount}
http://localhost:8080/api/v1/player/wagering/1/1/900
Winning [POST]
#http://localhost:8080/api/v1/player/winning/{playerId}/{transactionId}/{winAmount}
http://localhost:8080/api/v1/player/winning/1/1/900
GET TRANSACTIONS [POST]
#http://localhost:8080/api/v1/player/transactions/{transactionId}/{transactionType}

# list user wagers
http://localhost:8080/api/v1/player/transactions/1/wager

# list user wins
http://localhost:8080/api/v1/player/transactions/1/win
# Payload
{
    "username": "@nhlanhla",
    "password": "swordfish"
}

Releases

No releases published

Packages

No packages published

Languages