POST | /RestApi/markup/pages |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PageMarkupRequest
{
public ArrayList<String> Keys = null;
public ArrayList<String> getKeys() { return Keys; }
public PageMarkupRequest setKeys(ArrayList<String> value) { this.Keys = value; return this; }
}
public static class TemplateMarkupResponseCollection<PageMarkupModel>
{
public IList<PageMarkupModel> Items = null;
public IList<PageMarkupModel> getItems() { return Items; }
public TemplateMarkupResponseCollection<PageMarkupModel> setItems(IList<PageMarkupModel> value) { this.Items = value; return this; }
}
public static class PageMarkupModel extends TemplateMarkupModel
{
public String Key = null;
public String CultureName = null;
public String VersionKey = null;
public String Url = null;
public String ErrorMessage = null;
public String getKey() { return Key; }
public PageMarkupModel setKey(String value) { this.Key = value; return this; }
public String getCultureName() { return CultureName; }
public PageMarkupModel setCultureName(String value) { this.CultureName = value; return this; }
public String getVersionKey() { return VersionKey; }
public PageMarkupModel setVersionKey(String value) { this.VersionKey = value; return this; }
public String getUrl() { return Url; }
public PageMarkupModel setUrl(String value) { this.Url = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public PageMarkupModel setErrorMessage(String value) { this.ErrorMessage = value; return this; }
}
public static class TemplateMarkupModel
{
public String Markup = null;
public String FileName = null;
public String VirtualPath = null;
public String VirtualDirectory = null;
public String getMarkup() { return Markup; }
public TemplateMarkupModel setMarkup(String value) { this.Markup = value; return this; }
public String getFileName() { return FileName; }
public TemplateMarkupModel setFileName(String value) { this.FileName = value; return this; }
public String getVirtualPath() { return VirtualPath; }
public TemplateMarkupModel setVirtualPath(String value) { this.VirtualPath = value; return this; }
public String getVirtualDirectory() { return VirtualDirectory; }
public TemplateMarkupModel setVirtualDirectory(String value) { this.VirtualDirectory = value; return this; }
}
}
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/markup/pages HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PageMarkupRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Web.Compilation.Model">
<Keys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
</PageMarkupRequest>