| GET | /qry/game |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
class RedirectToProductInstanceApp
include ServiceStack::DTO
# @return [String]
attr_accessor :game_id
# @return [TrueClass]
attr_accessor :is_kiosk
# @return [String]
attr_accessor :client_type
# @return [String]
attr_accessor :organization_id
def self.properties
{
game_id: { name: 'gameId' },
is_kiosk: { name: 'isKiosk' },
client_type: { name: 'clientType' },
organization_id: { name: 'organizationId' },
}
end
end
Ruby RedirectToProductInstanceApp DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /qry/game HTTP/1.1 Host: api.bettor.webhop.biz Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}