<back to all web services

FilesGetRequest

The following routes are available for this service:
GET/RestApi/files-api
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class FilesGetRequest
    {
        public String Path = null;
        public String Extension = null;
        public Integer Skip = null;
        public Integer Take = null;
        
        public String getPath() { return Path; }
        public FilesGetRequest setPath(String value) { this.Path = value; return this; }
        public String getExtension() { return Extension; }
        public FilesGetRequest setExtension(String value) { this.Extension = value; return this; }
        public Integer getSkip() { return Skip; }
        public FilesGetRequest setSkip(Integer value) { this.Skip = value; return this; }
        public Integer getTake() { return Take; }
        public FilesGetRequest setTake(Integer value) { this.Take = value; return this; }
    }

    public static class FilesViewModel
    {
        public ArrayList<FilesItemViewModel> Items = null;
        public String Error = null;
        
        public ArrayList<FilesItemViewModel> getItems() { return Items; }
        public FilesViewModel setItems(ArrayList<FilesItemViewModel> value) { this.Items = value; return this; }
        public String getError() { return Error; }
        public FilesViewModel setError(String value) { this.Error = value; return this; }
    }

    public static class FilesItemViewModel
    {
        public String Name = null;
        public Boolean IsFolder = null;
        public Boolean HasChildren = null;
        
        public String getName() { return Name; }
        public FilesItemViewModel setName(String value) { this.Name = value; return this; }
        public Boolean getIsFolder() { return IsFolder; }
        public FilesItemViewModel setIsFolder(Boolean value) { this.IsFolder = value; return this; }
        public Boolean isHasChildren() { return HasChildren; }
        public FilesItemViewModel setHasChildren(Boolean value) { this.HasChildren = value; return this; }
    }

}

Java FilesGetRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/files-api HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Error":"String"}