<back to all web services

PageMarkupRequest

The following routes are available for this service:
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; }
    }

}

Java PageMarkupRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{Unable to show example output for type 'TemplateMarkupResponseCollection`1' using the custom 'other' filter}No parameterless constructor defined for this object.