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 .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"Item":{"IsEnabled":false,"UrlLimit":0,"Compress":false,"Condition":"Daily","DayToStart":0,"TimeToStart":"\/Date(-62135596800000-0000)\/","LastExecutionTime":"String","LastError":"String","PingGoogle":false}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Item":{"IsEnabled":false,"UrlLimit":0,"Compress":false,"Condition":"Daily","DayToStart":0,"TimeToStart":"\/Date(-62135596800000-0000)\/","LastExecutionTime":"String","LastError":"String","PingGoogle":false}}