| GET,OPTIONS | /v1/ReportManager/api/Objects/{Table}/fields |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class ReportManagerObjectFieldsRequest extends ReportManagerRequest<ReportManagerObject>
{
public String Table = null;
public String getTable() { return Table; }
public ReportManagerObjectFieldsRequest setTable(String value) { this.Table = value; return this; }
}
public static class ReportManagerRequest<T>
{
}
@DataContract
public static class ReportManagerObject implements IReportManagerDocument
{
@DataMember(Name="id")
@SerializedName("id")
public String ID = null;
@DataMember(Name="name")
@SerializedName("name")
public String Name = null;
@DataMember(Name="data")
@SerializedName("data")
public ArrayList<ReportManagerObjectData> Fields = new ArrayList<ReportManagerObjectData>();
@DataMember(Name="refs")
@SerializedName("refs")
public ArrayList<ReportManagerObjectRef> References = new ArrayList<ReportManagerObjectRef>();
public String getId() { return ID; }
public ReportManagerObject setId(String value) { this.ID = value; return this; }
public String getName() { return Name; }
public ReportManagerObject setName(String value) { this.Name = value; return this; }
public ArrayList<ReportManagerObjectData> getFields() { return Fields; }
public ReportManagerObject setFields(ArrayList<ReportManagerObjectData> value) { this.Fields = value; return this; }
public ArrayList<ReportManagerObjectRef> getReferences() { return References; }
public ReportManagerObject setReferences(ArrayList<ReportManagerObjectRef> value) { this.References = value; return this; }
}
@DataContract
public static class ReportManagerObjectData
{
@DataMember(Name="id")
@SerializedName("id")
public String ID = null;
@DataMember(Name="name")
@SerializedName("name")
public String Name = null;
@DataMember(Name="filter")
@SerializedName("filter")
public Boolean Filter = null;
@DataMember(Name="edit")
@SerializedName("edit")
public Boolean Edit = null;
@DataMember(Name="type")
@SerializedName("type")
public String TypeName = null;
@DataMember(Name="ref")
@SerializedName("ref")
public String Ref = null;
@DataMember(Name="key")
@SerializedName("key")
public Boolean IsKey = null;
@DataMember(Name="show")
@SerializedName("show")
public Boolean IsLabel = null;
public String getId() { return ID; }
public ReportManagerObjectData setId(String value) { this.ID = value; return this; }
public String getName() { return Name; }
public ReportManagerObjectData setName(String value) { this.Name = value; return this; }
public Boolean isFilter() { return Filter; }
public ReportManagerObjectData setFilter(Boolean value) { this.Filter = value; return this; }
public Boolean isEdit() { return Edit; }
public ReportManagerObjectData setEdit(Boolean value) { this.Edit = value; return this; }
public String getTypeName() { return TypeName; }
public ReportManagerObjectData setTypeName(String value) { this.TypeName = value; return this; }
public String getRef() { return Ref; }
public ReportManagerObjectData setRef(String value) { this.Ref = value; return this; }
public Boolean getIsKey() { return IsKey; }
public ReportManagerObjectData setIsKey(Boolean value) { this.IsKey = value; return this; }
public Boolean getIsLabel() { return IsLabel; }
public ReportManagerObjectData setIsLabel(Boolean value) { this.IsLabel = value; return this; }
}
@DataContract
public static class ReportManagerObjectRef
{
@DataMember(Name="id")
@SerializedName("id")
public Integer ID = null;
@DataMember(Name="target")
@SerializedName("target")
public String Target = null;
@DataMember(Name="source")
@SerializedName("source")
public String Source = null;
@DataMember(Name="name")
@SerializedName("name")
public String Name = null;
public Integer getId() { return ID; }
public ReportManagerObjectRef setId(Integer value) { this.ID = value; return this; }
public String getTarget() { return Target; }
public ReportManagerObjectRef setTarget(String value) { this.Target = value; return this; }
public String getSource() { return Source; }
public ReportManagerObjectRef setSource(String value) { this.Source = value; return this; }
public String getName() { return Name; }
public ReportManagerObjectRef setName(String value) { this.Name = value; return this; }
}
}
Java ReportManagerObjectFieldsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/ReportManager/api/Objects/{Table}/fields HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
[{"id":"String","name":"String","data":[{"id":"String","name":"String","filter":false,"edit":false,"type":"String","ref":"String","key":false,"show":false}],"refs":[{"id":0,"target":"String","source":"String","name":"String"}]}]