| GET | /extraInfo/form/{EventId} |
|---|
import Foundation
import ServiceStack
public class GetExtraInfoForm : Codable
{
public var eventId:Int?
required public init(){}
}
public class ExtraInfoFormResult : Codable
{
public var eventId:Int?
public var showAlert:Bool?
public var alertTitleIs:String?
public var alertTitleEn:String?
public var alertBodyIs:String?
public var alertBodyEn:String?
public var alertButtonIs:String?
public var alertButtonEn:String?
public var isDefault:Bool?
public var fields:[ExtraInfoFieldInfo] = []
required public init(){}
}
public class ExtraInfoFieldInfo : Codable
{
public var id:Int?
public var fieldKey:String?
public var fieldType:String?
public var labelIs:String?
public var labelEn:String?
public var placeholderIs:String?
public var placeholderEn:String?
public var isRequired:Bool?
public var maxLength:Int?
public var optionsJson:String?
public var scope:String?
public var sortOrder:Int?
public var isSystem:Bool?
public var isActive:Bool?
public var hasAnswers:Bool?
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 /extraInfo/form/{EventId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"eventId":0,"showAlert":false,"alertTitleIs":"String","alertTitleEn":"String","alertBodyIs":"String","alertBodyEn":"String","alertButtonIs":"String","alertButtonEn":"String","isDefault":false,"fields":[{"id":0,"fieldKey":"String","fieldType":"String","labelIs":"String","labelEn":"String","placeholderIs":"String","placeholderEn":"String","isRequired":false,"maxLength":0,"optionsJson":"String","scope":"String","sortOrder":0,"isSystem":false,"isActive":false,"hasAnswers":false}]}