All Verbs | /RestApi/sitefinity/sitemap/settings | ||
---|---|---|---|
All Verbs | /RestApi/sitefinity/sitemap/settings/{Id} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SitemapSettingsMessage
{
public UUID Id = null;
public SitemapSettings Item = null;
public UUID getId() { return Id; }
public SitemapSettingsMessage setId(UUID value) { this.Id = value; return this; }
public SitemapSettings getItem() { return Item; }
public SitemapSettingsMessage setItem(SitemapSettings value) { this.Item = value; return this; }
}
public static class SitemapSettings
{
public Boolean IsEnabled = null;
public Integer UrlLimit = null;
public Boolean Compress = null;
public SitemapGenerationCondition Condition = null;
public Integer DayToStart = null;
public Date TimeToStart = null;
public UUID SiteId = null;
public String LastExecutionTime = null;
public String LastError = null;
public Boolean PingGoogle = null;
public Boolean getIsEnabled() { return IsEnabled; }
public SitemapSettings setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
public Integer getUrlLimit() { return UrlLimit; }
public SitemapSettings setUrlLimit(Integer value) { this.UrlLimit = value; return this; }
public Boolean isCompress() { return Compress; }
public SitemapSettings setCompress(Boolean value) { this.Compress = value; return this; }
public SitemapGenerationCondition getCondition() { return Condition; }
public SitemapSettings setCondition(SitemapGenerationCondition value) { this.Condition = value; return this; }
public Integer getDayToStart() { return DayToStart; }
public SitemapSettings setDayToStart(Integer value) { this.DayToStart = value; return this; }
public Date getTimeToStart() { return TimeToStart; }
public SitemapSettings setTimeToStart(Date value) { this.TimeToStart = value; return this; }
public UUID getSiteId() { return SiteId; }
public SitemapSettings setSiteId(UUID value) { this.SiteId = value; return this; }
public String getLastExecutionTime() { return LastExecutionTime; }
public SitemapSettings setLastExecutionTime(String value) { this.LastExecutionTime = value; return this; }
public String getLastError() { return LastError; }
public SitemapSettings setLastError(String value) { this.LastError = value; return this; }
public Boolean isPingGoogle() { return PingGoogle; }
public SitemapSettings setPingGoogle(Boolean value) { this.PingGoogle = value; return this; }
}
public static enum SitemapGenerationCondition
{
Daily,
Weekly,
Manual;
}
public static class SitemapSettingsContext
{
public SitemapSettings Item = null;
public SitemapSettings getItem() { return Item; }
public SitemapSettingsContext setItem(SitemapSettings value) { this.Item = value; return this; }
}
}
Java 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 } }