# Get game all

ดึงข้อมูลเกมส์ทั้งหมดโดยอ้างอิงจากค่ายเกมส์ไอดี game_id

# Request

Field Value
URL {RYGAPI}/games/list
Method GET

# Query parameters

Key Type Description Required Value
vendor_id string ไอดีค่ายเกมส์ (อ้างอิงจาก Get game avaliable หาคำว่า game_id) Yes pgsoft

# Example

https://{RYGAPI}/games/all?vendor_id=pgsoft

# Response

Field Value
HTTP Code 200
Body type application/json

# JSON data

Key Type Description Required Value
gameList array ข้อมูลเกมส์ทั้งหมด Yes [...]
game_id int ไอดีเกมส์ Yes 1
game_name string ชื่อเกมส์ Yes PGDemo
game_type int ชนิดเกมส์ Yes 1
game_image string URL รูปภาพ No https://<CDN>/image/img.png
game_platforms string array Platform ที่รองรับ Yes ["PC","MOBILE"]
game_rank int ระดับความนิยม Yes -1
game_recommend boolean แนะนำเกมส์ Yes false

# Full response

{
  "code": 0,
  "message": "success",
  "data": {
    "gameList": [
      {
        "game_id": 1,
        "game_title": "PGDemo",
        "game_type": 1,
        "game_image": null,
        "game_platforms": ["PC", "MOBILE"],
        "game_rank": -1,
        "game_recommend": true
      },
      {
        "game_id": 2,
        "game_title": "PGDemo #2",
        "game_type": 1,
        "game_image": null,
        "game_platforms": ["PC"],
        "game_rank": -1,
        "game_recommend": false
      }
    ]
  }
}