| GET | /v1/SalesPackage |
|---|
import Foundation
import ServiceStack
public class SalesPackageRequest : Codable
{
public var salesPackage:[SalesPackage] = []
required public init(){}
}
public class SalesPackage : Codable
{
public var id:Int
public var packageName:String
public var hashingPower:String
public var controllerType:Int
public var controllerQuantity:Int
public var minerType:Int
public var minerQuantity:Int
public var price:Double
public var Description:String
public var imageURL:String
public var specialSaleText:String
public var shipPrice:Double
public var discountPrice:Double
required public init(){}
}
public class SalesPackageResponse : Codable
{
public var responseStatus:ResponseStatus
public var salesPackage:[SalesPackage] = []
required public init(){}
}
Swift SalesPackageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/SalesPackage HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SalesPackage":[{"ID":0,"PackageName":"String","HashingPower":"String","ControllerType":0,"ControllerQuantity":0,"MinerType":0,"MinerQuantity":0,"Price":0,"Description":"String","ImageURL":"String","SpecialSaleText":"String","ShipPrice":0,"DiscountPrice":0}]}