GET | /RestApi/sitefinity/scheduling/scheduled-tasks |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetScheduledTasks
{
var Skip:Int? = null
var Take:Int? = null
var SearchTerm:String? = null
var OrderBy:OrderByType? = null
var FilterBy:FilterByType? = null
}
enum class OrderByType
{
ScheduledFor,
LastExecutionDate,
Status,
NameAsc,
NameDesc,
}
enum class FilterByType
{
All,
Pending,
Started,
Stopped,
Failed,
Recurring,
}
open class GetScheduledTasksResponse
{
var Items:ArrayList<ScheduledTaskViewModel> = ArrayList<ScheduledTaskViewModel>()
var TotalCount:Int? = null
}
open class ScheduledTaskViewModel
{
var TaskId:UUID? = null
var Name:String? = null
var Title:String? = null
var Status:String? = null
var ErrorMessage:String? = null
var RecurringInterval:String? = null
var ScheduledForDate:Date? = null
var LastExecutionTime:Date? = null
var Hash:String? = null
}
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 }