TicketUserServices

<back to all web services

GetExtraInfoForm

The following routes are available for this service:
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(){}
}


Swift GetExtraInfoForm DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	]
}