Waffle API
  1. Game Service
Waffle API
  • Overview
  • Authentication
    • Get access token
      POST
    • Refresh token
      POST
    • Revoke token
      POST
  • Game
    • List games
      GET
    • Get loyalty program by ID
      GET
    • Create new game
      POST
    • Update game by ID
      PUT
    • Delete game by ID
      DELETE
  • Ticket
  • Game Account
    • List game accounts
      GET
    • Get game account by ID
      GET
    • Search game accounts
      POST
  • Report
  • Game Service
    • Gen Token
      POST
    • Login
      POST
    • List games
      GET
    • Verify Session
      GET
  1. Game Service

List games

Testing
Develop Env
https://waffle-game-service-dev.nextzy.com/api
Develop Env
https://waffle-game-service-dev.nextzy.com/api
GET
https://waffle-game-service-dev.nextzy.com/api
/v1/games
Last modified:2024-05-21 10:10:16

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Content-Type
string 
required
Default:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://waffle-game-service-dev.nextzy.com/api/v1/games'

Responses

🟢200Success
application/json
Body
statusCode
integer 
required
data
array [object {7}] 
required
code
string 
required
name
string 
required
nameTh
string 
required
type
string 
required
active
boolean 
required
order
integer 
required
gameImageUrl
string 
required
timestamp
string 
required
Example
{
  "statusCode": 200,
  "data": [
    {
      "code": "G001",
      "name": "volleyball",
      "nameTh": "volleyball",
      "type": "olympic",
      "active": true,
      "order": 1,
      "gameImageUrl": "https://waffle-game.obs.ap-southeast-2.myhuaweicloud.com/games/banner/G001.png"
    },
    {
      "code": "G002",
      "name": "penalty",
      "nameTh": "penalty",
      "type": "olympic",
      "active": true,
      "order": 2,
      "gameImageUrl": "https://waffle-game.obs.ap-southeast-2.myhuaweicloud.com/games/banner/G002.png"
    },
    {
      "code": "G003",
      "name": "yoknamnak",
      "nameTh": "yoknamnak",
      "type": "olympic",
      "active": true,
      "order": 3,
      "gameImageUrl": "https://waffle-game.obs.ap-southeast-2.myhuaweicloud.com/games/banner/G003.png"
    }
  ],
  "timestamp": "2024-05-21T18:01:21+08:00"
}
🟠401Unauthorized
Modified at 2024-05-21 10:10:16
Previous
Login
Next
Verify Session
Built with