| All Verbs | /qry/product-instance |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
class ProductInstance
include ServiceStack::DTO
# @return [String]
attr_accessor :id
# @return [String]
attr_accessor :name
# @return [String]
attr_accessor :title
def self.properties
{
id: { name: 'id' },
name: { name: 'name' },
title: { name: 'title' },
}
end
end
class GetProductInstance
include ServiceStack::DTO
def response_type() = ProductInstance
def get_type_name() = 'GetProductInstance'
end
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/product-instance HTTP/1.1
Host: s4w1.api.bettor.webhop.biz
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":"String","name":"String","title":"String"}