Requires the role: | 3rdPartySearch | Required permission: | EventsSearch |
GET | /EventsWithLocation | ||
---|---|---|---|
POST/GET | /EventsWithLocation/MaxDays/{MaxDays} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports TicketUserServices.ServiceModel.Types
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class EventsWithLocationRequest
Public Overridable Property MaxDays As Nullable(Of Integer)
End Class
Public Partial Class EventsWithLocationResult
Public Sub New()
data = New List(Of EventWithLocation)
End Sub
Public Overridable Property Status As Status
Public Overridable Property data As List(Of EventWithLocation)
End Class
Public Partial Class Status
Public Overridable Property StatusCode As Integer
Public Overridable Property StatusMessage As String
Public Overridable Property StatusDetails As String
End Class
End Namespace
Namespace TicketUserServices.ServiceModel.Types
Public Partial Class EventWithLocation
Public Overridable Property ID As Integer
Public Overridable Property Name As String
Public Overridable Property Description As String
Public Overridable Property TimeOfEvent As Date
Public Overridable Property EventActive As Boolean
Public Overridable Property EventSeriesActive As Nullable(Of Boolean)
Public Overridable Property EventLocationName As String
Public Overridable Property Latitude As Decimal
Public Overridable Property Longitude As Decimal
Public Overridable Property AddressName As String
Public Overridable Property AddressLine As String
Public Overridable Property Zip As String
Public Overridable Property City As String
Public Overridable Property CountryCode As String
Public Overridable Property PostPonedNoDate As Nullable(Of Boolean)
Public Overridable Property EndOfEvent As Date
End Class
End Namespace
End Namespace
VB.NET EventsWithLocationRequest 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 /EventsWithLocation HTTP/1.1 Host: stubbur-autoupdates-live.smartnewapis.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"status":{"statusCode":0,"statusMessage":"String","statusDetails":"String"},"data":[{"id":0,"name":"String","description":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","eventActive":false,"eventSeriesActive":false,"eventLocationName":"String","latitude":0,"longitude":0,"addressName":"String","addressLine":"String","zip":"String","city":"String","countryCode":"String","postPonedNoDate":false,"endOfEvent":"0001-01-01T00:00:00.0000000"}]}