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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<SitemapSettingsMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.SitemapGenerator.Data">
<Id>00000000-0000-0000-0000-000000000000</Id>
<Item>
<Compress>false</Compress>
<Condition>Daily</Condition>
<DayToStart>0</DayToStart>
<IsEnabled>false</IsEnabled>
<LastError>String</LastError>
<LastExecutionTime>String</LastExecutionTime>
<PingGoogle>false</PingGoogle>
<SiteId>00000000-0000-0000-0000-000000000000</SiteId>
<TimeToStart>0001-01-01T00:00:00</TimeToStart>
<UrlLimit>0</UrlLimit>
</Item>
</SitemapSettingsMessage>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SitemapSettingsContext xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.SitemapGenerator.Data"> <Item> <Compress>false</Compress> <Condition>Daily</Condition> <DayToStart>0</DayToStart> <IsEnabled>false</IsEnabled> <LastError>String</LastError> <LastExecutionTime>String</LastExecutionTime> <PingGoogle>false</PingGoogle> <SiteId>00000000-0000-0000-0000-000000000000</SiteId> <TimeToStart>0001-01-01T00:00:00</TimeToStart> <UrlLimit>0</UrlLimit> </Item> </SitemapSettingsContext>