| GET | /extraInfo/form/{EventId} |
|---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ExtraInfoFieldInfo() =
member val Id:Int32 = new Int32() with get,set
member val FieldKey:String = null with get,set
member val FieldType:String = null with get,set
member val LabelIs:String = null with get,set
member val LabelEn:String = null with get,set
member val PlaceholderIs:String = null with get,set
member val PlaceholderEn:String = null with get,set
member val IsRequired:Boolean = new Boolean() with get,set
member val MaxLength:Int32 = new Int32() with get,set
member val OptionsJson:String = null with get,set
member val Scope:String = null with get,set
member val SortOrder:Int32 = new Int32() with get,set
member val IsSystem:Boolean = new Boolean() with get,set
member val IsActive:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val HasAnswers:Nullable<Boolean> = new Nullable<Boolean>() with get,set
[<AllowNullLiteral>]
type ExtraInfoFormResult() =
member val EventId:Int32 = new Int32() with get,set
member val ShowAlert:Boolean = new Boolean() with get,set
member val AlertTitleIs:String = null with get,set
member val AlertTitleEn:String = null with get,set
member val AlertBodyIs:String = null with get,set
member val AlertBodyEn:String = null with get,set
member val AlertButtonIs:String = null with get,set
member val AlertButtonEn:String = null with get,set
member val IsDefault:Boolean = new Boolean() with get,set
member val Fields:ResizeArray<ExtraInfoFieldInfo> = new ResizeArray<ExtraInfoFieldInfo>() with get,set
[<AllowNullLiteral>]
type GetExtraInfoForm() =
member val EventId:Int32 = new Int32() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ExtraInfoFormResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AlertBodyEn>String</AlertBodyEn>
<AlertBodyIs>String</AlertBodyIs>
<AlertButtonEn>String</AlertButtonEn>
<AlertButtonIs>String</AlertButtonIs>
<AlertTitleEn>String</AlertTitleEn>
<AlertTitleIs>String</AlertTitleIs>
<EventId>0</EventId>
<Fields>
<ExtraInfoFieldInfo>
<FieldKey>String</FieldKey>
<FieldType>String</FieldType>
<HasAnswers>false</HasAnswers>
<Id>0</Id>
<IsActive>false</IsActive>
<IsRequired>false</IsRequired>
<IsSystem>false</IsSystem>
<LabelEn>String</LabelEn>
<LabelIs>String</LabelIs>
<MaxLength>0</MaxLength>
<OptionsJson>String</OptionsJson>
<PlaceholderEn>String</PlaceholderEn>
<PlaceholderIs>String</PlaceholderIs>
<Scope>String</Scope>
<SortOrder>0</SortOrder>
</ExtraInfoFieldInfo>
</Fields>
<IsDefault>false</IsDefault>
<ShowAlert>false</ShowAlert>
</ExtraInfoFormResult>