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

Gen Token

Testing
Develop Env
https://waffle-game-service-dev.nextzy.com/api
Develop Env
https://waffle-game-service-dev.nextzy.com/api
POST
https://waffle-game-service-dev.nextzy.com/api
/v1/auth/gen-token
Last modified:2024-05-21 10:36:08
The Api Gen Token is used to generate tokens for other API operations such as login, list games.

Request

Header Params
Content-Type
string 
required
Default:
application/json
Body Params application/json
customer
string 
required
customer code
Example
{
  "customer": "demo"
}

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 POST 'https://waffle-game-service-dev.nextzy.com/api/v1/auth/gen-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customer": "demo"
}'

Responses

🟢200Success
application/json
Body
statusCode
integer 
required
data
string 
required
timestamp
string 
required
Example
{
  "statusCode": 201,
  "data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lciI6ImRlbW8iLCJpYXQiOjE3MTYyODU2MzksImV4cCI6MTcxNjMyODgzOX0.BjOAqAlnUhXFk0bTYx1hdohz6vHWVT8JF_3wY-bnn0g",
  "timestamp": "2024-05-21T18:00:39+08:00"
}
Modified at 2024-05-21 10:36:08
Previous
Search game accounts
Next
Login
Built with