🚀 Public API

Home preview lista endpointa (routes + primeri + očekivani parametri).

GET
/GameList

Returns content of ~/GameList.json as JSON.

Notes
  • 404 if GameList.json not found
  • 500 on server error
GET
/GetGameInfo/{gameId}/{ticketId}

Game + ticket info (renders MVC view). Returns Error view if ticket not found.

Example
/GetGameInfo/200/125087
Params
  • gameId (int)
  • ticketId (string)
POST
/GameLaunch

Launch game request (reads JSON from request body, validates, processes & inserts to DB).

Body
JSON payload parsed by ParseLaunchRequest and validated by ValidateLaunchRequest.
Notes
  • Returns WRONG_INPUT_PARAMETERS if body cannot be deserialized
  • Returns validation JSON if validation fails
  • Returns DB_ERROR if DB insert fails
GET
/GetCompanyJackpots/{companyId}

Company jackpots info.

Examples
/GetCompanyJackpots/1 /GetCompanyJackpots/5?currency=USD
Params
  • companyId (int, must be > 0)
  • currency (query string, default: EUR)
GET
/Jackpots/{GameID}/{CompanyID}/{Currency}

Game jackpots info.

Examples
/Jackpots/101/1/EUR /Jackpots/102/5/USD
Params
  • GameID (int)
  • CompanyID (int, default: 0)
  • Currency (string, default: EUR)
GET
/GetJackpots/{companyId}/{currency}

Returns jackpots for company in selected currency (JSON).

Example
/GetJackpots/5/EUR
Params
  • companyId (int)
  • currency (string, default: EUR in action signature)
GET
/GetUserTicketsInRound/{gameId}/{roundId}/{userId}

Returns all user tickets for specific game round (renders MVC view based on gameId).

Example
/GetUserTicketsInRound/101/20240224001/12345
Params
  • gameId (int)
  • roundId (long)
  • userId (string)
Notes
  • Supported gameIds in code: 101 (Rocketman), 111 (Soaring)
  • Returns Error view if no tickets or unsupported gameId
POST
/GetGameInfo_Slot

Slot spin preview info (reads raw JSON body, returns JSON with camelCase).

Body
JSON deserialized into GetSlotSpinPreviewRequest.
Notes
  • 400: INVALID_JSON or BAD_REQUEST
  • 500: SERVER_ERROR
POST
/GetDemoSpin_Slot

Demo slot spin preview.

Body
Model-bound request: DemoSpinRequest
Notes
  • Service returns spin result payload
  • HTTP status code is set from service result
  • Response body: JSON payload