All Verbs | /RestApi/sitefinity/sitemap/settings | ||
---|---|---|---|
All Verbs | /RestApi/sitefinity/sitemap/settings/{Id} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.SitemapGenerator.Data
Namespace Global
Namespace Telerik.Sitefinity.SitemapGenerator.Data
Public Enum SitemapGenerationCondition
Daily
Weekly
Manual
End Enum
Public Partial Class SitemapSettings
Public Overridable Property IsEnabled As Boolean
Public Overridable Property UrlLimit As Integer
Public Overridable Property Compress As Boolean
Public Overridable Property Condition As SitemapGenerationCondition
Public Overridable Property DayToStart As Integer
Public Overridable Property TimeToStart As Date
Public Overridable Property SiteId As Guid
Public Overridable Property LastExecutionTime As String
Public Overridable Property LastError As String
Public Overridable Property PingGoogle As Boolean
End Class
Public Partial Class SitemapSettingsContext
Public Overridable Property Item As SitemapSettings
End Class
Public Partial Class SitemapSettingsMessage
Public Overridable Property Id As Guid
Public Overridable Property Item As SitemapSettings
End Class
End Namespace
End Namespace
VB.NET 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 } }