TicketUserServices

<back to all web services

GetExtraInfoForm

The following routes are available for this service:
GET/extraInfo/form/{EventId}
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ExtraInfoFieldInfo:
    id: Optional[int] = None
    field_key: Optional[str] = None
    field_type: Optional[str] = None
    label_is: Optional[str] = None
    label_en: Optional[str] = None
    placeholder_is: Optional[str] = None
    placeholder_en: Optional[str] = None
    is_required: Optional[bool] = None
    max_length: Optional[int] = None
    options_json: Optional[str] = None
    scope: Optional[str] = None
    sort_order: Optional[int] = None
    is_system: Optional[bool] = None
    is_active: Optional[bool] = None
    has_answers: Optional[bool] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ExtraInfoFormResult:
    event_id: Optional[int] = None
    show_alert: Optional[bool] = None
    alert_title_is: Optional[str] = None
    alert_title_en: Optional[str] = None
    alert_body_is: Optional[str] = None
    alert_body_en: Optional[str] = None
    alert_button_is: Optional[str] = None
    alert_button_en: Optional[str] = None
    is_default: Optional[bool] = None
    fields: Optional[List[ExtraInfoFieldInfo]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetExtraInfoForm:
    event_id: Optional[int] = None

Python GetExtraInfoForm DTOs

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

HTTP + JSON

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}]}