| GET | /ticketHold/availability |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class CategoryAvailability
Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
Public Overridable Property MaxTickets As Nullable(Of Integer)
Public Overridable Property Remaining As Integer
End Class
Public Partial Class TicketHoldAvailabilityRequest
Public Overridable Property EventId As Integer
End Class
Public Partial Class TicketHoldAvailabilityResult
Public Sub New()
PerCategory = New List(Of CategoryAvailability)
End Sub
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
Public Overridable Property PerCategory As List(Of CategoryAvailability)
Public Overridable Property Scarcity As Boolean
End Class
End Namespace
End Namespace
VB.NET TicketHoldAvailabilityRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ticketHold/availability HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"statusCode":0,"message":"String","perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}