| GET | /GetDetails/ |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
class GetDetailsResponse
include ServiceStack::DTO
# @return [Integer]
attr_accessor :bpid
# @return [Integer]
attr_accessor :failed_login_attempt
# @return [String]
attr_accessor :reg_number
# @return [TrueClass]
attr_accessor :success
# @return [String]
attr_accessor :error
# @return [String]
attr_accessor :mercedes_finance_portal_name
def self.properties
{
bpid: { name: 'bpid' },
failed_login_attempt: { name: 'failedLoginAttempt' },
reg_number: { name: 'regNumber' },
success: { name: 'success' },
error: { name: 'error' },
mercedes_finance_portal_name: { name: 'mercedesFinancePortalName' },
}
end
end
class GetDetailsRequest
include ServiceStack::DTO
# @return [String]
attr_accessor :guid
def self.properties
{
guid: { name: 'guid' },
}
end
def response_type() = GetDetailsResponse
def get_type_name() = 'GetDetailsRequest'
end
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 /GetDetails/ HTTP/1.1 Host: webservices.mbukdatabase.co.uk Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
BPID: 0,
FailedLoginAttempt: 0,
RegNumber: String,
Success: False,
Error: String,
MercedesFinancePortalName: String
}