GET | /RestApi/sitefinity/scheduling/scheduled-tasks |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Scheduling.Web.Services.ServiceStack.Dto
Namespace Global
Namespace Telerik.Sitefinity.Scheduling.Web.Services.ServiceStack.Dto
Public Enum FilterByType
All
Pending
Started
Stopped
Failed
Recurring
End Enum
Public Partial Class GetScheduledTasks
Public Overridable Property Skip As Integer
Public Overridable Property Take As Integer
Public Overridable Property SearchTerm As String
Public Overridable Property OrderBy As OrderByType
Public Overridable Property FilterBy As FilterByType
End Class
Public Partial Class GetScheduledTasksResponse
Public Overridable Property Items As IEnumerable(Of ScheduledTaskViewModel)
Public Overridable Property TotalCount As Integer
End Class
Public Enum OrderByType
ScheduledFor
LastExecutionDate
Status
NameAsc
NameDesc
End Enum
Public Partial Class ScheduledTaskViewModel
Public Overridable Property TaskId As Guid
Public Overridable Property Name As String
Public Overridable Property Title As String
Public Overridable Property Status As String
Public Overridable Property ErrorMessage As String
Public Overridable Property RecurringInterval As String
Public Overridable Property ScheduledForDate As Date
Public Overridable Property LastExecutionTime As Nullable(Of Date)
Public Overridable Property Hash As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/sitefinity/scheduling/scheduled-tasks HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { TotalCount: 0 }