| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| GET | /extraInfo/form/{EventId}/admin |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
namespace TicketUserServices.ServiceModel
{
public partial class ExtraInfoFieldInfo
{
public virtual int Id { get; set; }
public virtual string FieldKey { get; set; }
public virtual string FieldType { get; set; }
public virtual string LabelIs { get; set; }
public virtual string LabelEn { get; set; }
public virtual string PlaceholderIs { get; set; }
public virtual string PlaceholderEn { get; set; }
public virtual bool IsRequired { get; set; }
public virtual int MaxLength { get; set; }
public virtual string OptionsJson { get; set; }
public virtual string Scope { get; set; }
public virtual int SortOrder { get; set; }
public virtual bool IsSystem { get; set; }
public virtual bool? IsActive { get; set; }
public virtual bool? HasAnswers { get; set; }
}
public partial class ExtraInfoFormResult
{
public ExtraInfoFormResult()
{
Fields = new List<ExtraInfoFieldInfo>{};
}
public virtual int EventId { get; set; }
public virtual bool ShowAlert { get; set; }
public virtual string AlertTitleIs { get; set; }
public virtual string AlertTitleEn { get; set; }
public virtual string AlertBodyIs { get; set; }
public virtual string AlertBodyEn { get; set; }
public virtual string AlertButtonIs { get; set; }
public virtual string AlertButtonEn { get; set; }
public virtual bool IsDefault { get; set; }
public virtual List<ExtraInfoFieldInfo> Fields { get; set; }
}
public partial class GetExtraInfoFormAdmin
{
public virtual int EventId { get; set; }
}
}
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}/admin 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}]}