All Verbs | /RestApi/sitefinity/sitemap/GetCurrentSitemapStatus |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SitemapStatusMessage
{
public UUID CurrentSiteId = null;
public UUID getCurrentSiteId() { return CurrentSiteId; }
public SitemapStatusMessage setCurrentSiteId(UUID value) { this.CurrentSiteId = value; return this; }
}
public static class SitemapStatusContext
{
public SitemapStatus Item = null;
public SitemapStatus getItem() { return Item; }
public SitemapStatusContext setItem(SitemapStatus value) { this.Item = value; return this; }
}
public static class SitemapStatus
{
public Integer CurrentProgress = null;
public String StatusMessage = null;
public String LastGenerated = null;
public ArrayList<String> Links = null;
public Integer getCurrentProgress() { return CurrentProgress; }
public SitemapStatus setCurrentProgress(Integer value) { this.CurrentProgress = value; return this; }
public String getStatusMessage() { return StatusMessage; }
public SitemapStatus setStatusMessage(String value) { this.StatusMessage = value; return this; }
public String getLastGenerated() { return LastGenerated; }
public SitemapStatus setLastGenerated(String value) { this.LastGenerated = value; return this; }
public ArrayList<String> getLinks() { return Links; }
public SitemapStatus setLinks(ArrayList<String> value) { this.Links = value; return this; }
}
}
Java SitemapStatusMessage 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/GetCurrentSitemapStatus HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SitemapStatusMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.SitemapGenerator.Data">
<CurrentSiteId>00000000-0000-0000-0000-000000000000</CurrentSiteId>
</SitemapStatusMessage>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SitemapStatusContext xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.SitemapGenerator.Data"> <Item> <CurrentProgress>0</CurrentProgress> <LastGenerated>String</LastGenerated> <Links xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <StatusMessage>String</StatusMessage> </Item> </SitemapStatusContext>