All Verbs | /RestApi/sitefinity/sitemap/settings | ||
---|---|---|---|
All Verbs | /RestApi/sitefinity/sitemap/settings/{Id} |
import java.math.*
import java.util.*
import net.servicestack.client.*
open class SitemapSettingsMessage
{
var Id:UUID? = null
var Item:SitemapSettings? = null
}
open class SitemapSettings
{
var IsEnabled:Boolean? = null
var UrlLimit:Int? = null
var Compress:Boolean? = null
var Condition:SitemapGenerationCondition? = null
var DayToStart:Int? = null
var TimeToStart:Date? = null
var SiteId:UUID? = null
var LastExecutionTime:String? = null
var LastError:String? = null
var PingGoogle:Boolean? = null
}
enum class SitemapGenerationCondition
{
Daily,
Weekly,
Manual,
}
open class SitemapSettingsContext
{
var Item:SitemapSettings? = null
}
Kotlin SitemapSettingsMessage DTOs
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.
POST /RestApi/sitefinity/sitemap/settings HTTP/1.1
Host: www.asg.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Item:
{
IsEnabled: False,
UrlLimit: 0,
Compress: False,
Condition: Daily,
DayToStart: 0,
TimeToStart: 0001-01-01,
LastExecutionTime: String,
LastError: String,
PingGoogle: False
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Item: { IsEnabled: False, UrlLimit: 0, Compress: False, Condition: Daily, DayToStart: 0, TimeToStart: 0001-01-01, LastExecutionTime: String, LastError: String, PingGoogle: False } }