Get Game Sessions By Game ID
Last updated
Last updated
This endpoint will get all session for a single game by game ID
Response :
{
"content": [
{
"id": 25,
"roomId": "e6e92345-ae24-4d44-acd2-b2145d21c2aj",
"gameId": 1,
"entryToken": {
"id": 1,
"tokenId": "BANA",
"tokenName": "bananaclip",
"logoUrl": null,
"metadata": {
"assetName": "42414e41",
"policyId": "3a89cf5f2f18887fcaec3d2e9bd4fee52caeaebc50f338ff23861cec",
"decimals": "4"
},
"volume": 6000
},
"roomEntry": 2000,
"totalWager": 2000,
"creator": {
"id": 1,
"username": "admin",
"avatar": null
},
"participants": [
{
"id": 1,
"username": "admin",
"avatar": null
}
],
"maxPlayers": 2,
"isFriendsOnly": false,
"status": "CREATED",
"createdAt": "2025-03-03T11:22:38.859543Z"
},
{
"id": 27,
"roomId": "e6e92345-ae24-4d44-acd2-b2145d21c2aw",
"gameId": 1,
"entryToken": {
"id": 1,
"tokenId": "BANA",
"tokenName": "bananaclip",
"logoUrl": null,
"metadata": {
"assetName": "42414e41",
"policyId": "3a89cf5f2f18887fcaec3d2e9bd4fee52caeaebc50f338ff23861cec",
"decimals": "4"
},
"volume": 6000
},
"roomEntry": 2000,
"totalWager": 2000,
"creator": {
"id": 1,
"username": "admin",
"avatar": null
},
"participants": [
{
"id": 1,
"username": "admin",
"avatar": null
}
],
"maxPlayers": 2,
"isFriendsOnly": false,
"status": "CREATED",
"createdAt": "2025-03-05T11:24:20.179984Z"
}
],
"pageable": {
"pageNumber": 0,
"pageSize": 25,
"sort": {
"orders": [],
"empty": true,
"sorted": false,
"unsorted": true
},
"offset": 0,
"paged": true,
"unpaged": false
},
"total": 2,
"last": true,
"totalElements": 2,
"totalPages": 1,
"size": 25,
"number": 0,
"sort": {
"orders": [],
"empty": true,
"sorted": false,
"unsorted": true
},
"numberOfElements": 2,
"first": true,
"empty": false
}
/api/v1/game-sessions/game/{gameId}
ASC
, DESC
CREATED
, ACTIVE
, COMPLETED
, CANCELED
curl -L \
--url 'http://api.bananaclip.io/api/v1/game-sessions/game/{gameId}'
{
"totalElements": 1,
"totalPages": 1,
"size": 1,
"content": [
{
"id": 1,
"roomId": "text",
"gameId": 1,
"entryToken": {
"id": 1,
"tokenId": "text",
"tokenName": "text",
"logoUrl": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"volume": 1
},
"roomEntry": 1,
"totalWager": 1,
"creator": {
"id": 1,
"username": "text",
"avatar": {
"id": 1,
"url": "text"
}
},
"participants": [
{
"id": 1,
"username": "text",
"avatar": {
"id": 1,
"url": "text"
}
}
],
"maxPlayers": 1,
"isFriendsOnly": true,
"status": "CREATED",
"createdAt": "text"
}
],
"number": 1,
"sort": [
{
"direction": "text",
"nullHandling": "text",
"ascending": true,
"property": "text",
"ignoreCase": true
}
],
"pageable": {
"offset": 1,
"sort": [
{
"direction": "text",
"nullHandling": "text",
"ascending": true,
"property": "text",
"ignoreCase": true
}
],
"paged": true,
"pageNumber": 1,
"pageSize": 1,
"unpaged": true
},
"numberOfElements": 1,
"first": true,
"last": true,
"empty": true
}
OK