TicketUserServices

<back to all web services

FanSnapshotTakeRequest

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/FanSnapshot/Take
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 FanSnapshotTakeRequest
            Public Overridable Property AsOfDate As Nullable(Of Date)
            Public Overridable Property Replace As Boolean
            Public Overridable Property CatchUpDays As Nullable(Of Integer)
            Public Overridable Property MaxDates As Nullable(Of Integer)
        End Class

        Public Partial Class FanSnapshotTakeResult
            Public Sub New()
                Taken = New List(Of String)
                Skipped = New List(Of String)
                StillMissing = New List(Of String)
            End Sub

            Public Overridable Property Taken As List(Of String)
            Public Overridable Property Skipped As List(Of String)
            Public Overridable Property StillMissing As List(Of String)
            Public Overridable Property RowsWritten As Integer
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET FanSnapshotTakeRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /FanSnapshot/Take HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	asOfDate: 0001-01-01,
	replace: False,
	catchUpDays: 0,
	maxDates: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	taken: 
	[
		String
	],
	skipped: 
	[
		String
	],
	stillMissing: 
	[
		String
	],
	rowsWritten: 0,
	statusCode: 0,
	message: String
}