| Requires the role: | Admin | Requires the permission: | ReadData |
| GET | /stig/history |
|---|
import Foundation
import ServiceStack
public class StigHistoryRequest : Codable
{
public var fullPhoneNumber:String?
public var skip:Int?
public var take:Int?
public var includeHolds:Bool?
required public init(){}
}
public class StigHistoryResult : Codable
{
public var fullPhoneNumber:String?
public var known:Bool?
public var items:[StigHistoryEntry] = []
public var totalCount:Int?
public var skip:Int?
public var take:Int?
public var statusCode:Int?
public var message:String?
required public init(){}
}
public class StigHistoryEntry : Codable
{
public var id:Int?
public var kind:String?
public var label:LocalizedMessage?
public var amount:Int?
public var affectsBalance:Bool?
public var eventId:Int?
public var eventName:String?
public var eventTimeUtc:Date?
public var ownerId:Int?
public var ownerName:String?
public var ticketId:Int?
public var orderReference:String?
public var sourceAmountMinor:Int?
public var multiplierBasisPoints:Int?
public var campaignCode:String?
public var status:String?
public var createdUtc:Date?
public var note:String?
required public init(){}
}
public class LocalizedMessage : Codable
{
public var `is`:String?
public var en:String?
required public init(){}
}
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 /stig/history HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"fullPhoneNumber":"String","known":false,"items":[{"id":0,"kind":"String","label":{"is":"String","en":"String"},"amount":0,"affectsBalance":false,"eventId":0,"eventName":"String","eventTimeUtc":"0001-01-01T00:00:00.0000000","ownerId":0,"ownerName":"String","ticketId":0,"orderReference":"String","sourceAmountMinor":0,"multiplierBasisPoints":0,"campaignCode":"String","status":"String","createdUtc":"0001-01-01T00:00:00.0000000","note":"String"}],"totalCount":0,"skip":0,"take":0,"statusCode":0,"message":"String"}