| All Verbs | /RestApi/sitefinity/sitemap/settings | ||
|---|---|---|---|
| All Verbs | /RestApi/sitefinity/sitemap/settings/{Id} |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class SitemapSettingsMessage
{
open var Id:UUID? = null
open var Item:SitemapSettings? = null
}
open class SitemapSettings
{
open var IsEnabled:Boolean? = null
open var UrlLimit:Int? = null
open var Compress:Boolean? = null
open var Condition:SitemapGenerationCondition? = null
open var DayToStart:Int? = null
open var TimeToStart:Date? = null
open var SiteId:UUID? = null
open var LastExecutionTime:String? = null
open var LastError:String? = null
open var PingGoogle:Boolean? = null
}
enum class SitemapGenerationCondition
{
Daily,
Weekly,
Manual,
}
open class SitemapSettingsContext
{
open 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.imglobal.com
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}}