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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Item":{"CurrentProgress":0,"StatusMessage":"String","LastGenerated":"String"}}