| GET | /{Workspace}/InventoryTree |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class InventoryTree
{
public String Workspace = null;
public Boolean IncludeInactive = null;
public String OwningAsset = null;
public String OwningTask = null;
public String getWorkspace() { return Workspace; }
public InventoryTree setWorkspace(String value) { this.Workspace = value; return this; }
public Boolean isIncludeInactive() { return IncludeInactive; }
public InventoryTree setIncludeInactive(Boolean value) { this.IncludeInactive = value; return this; }
public String getOwningAsset() { return OwningAsset; }
public InventoryTree setOwningAsset(String value) { this.OwningAsset = value; return this; }
public String getOwningTask() { return OwningTask; }
public InventoryTree setOwningTask(String value) { this.OwningTask = value; return this; }
}
public static class InventoryTreeResponse
{
public Long RecordsAvailable = null;
public ArrayList<InventoryTreeNode> Tree = null;
public Long getRecordsAvailable() { return RecordsAvailable; }
public InventoryTreeResponse setRecordsAvailable(Long value) { this.RecordsAvailable = value; return this; }
public ArrayList<InventoryTreeNode> getTree() { return Tree; }
public InventoryTreeResponse setTree(ArrayList<InventoryTreeNode> value) { this.Tree = value; return this; }
}
public static class InventoryTreeNode
{
public String Type = null;
public Integer DescendantCount = null;
public String getType() { return Type; }
public InventoryTreeNode setType(String value) { this.Type = value; return this; }
public Integer getDescendantCount() { return DescendantCount; }
public InventoryTreeNode setDescendantCount(Integer value) { this.DescendantCount = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/InventoryTree HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
RecordsAvailable: 0,
Tree:
[
{
}
]
}