| GET,OPTIONS | /v1/Project/ProfitLoss/{ProjectID}/{ProfitLossStartDate}/{ProfitLossEndDate} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ProjectProfitLossRequest
{
public Integer ProjectID = null;
public Date ProfitLossStartDate = null;
public Date ProfitLossEndDate = null;
public Integer getProjectID() { return ProjectID; }
public ProjectProfitLossRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public Date getProfitLossStartDate() { return ProfitLossStartDate; }
public ProjectProfitLossRequest setProfitLossStartDate(Date value) { this.ProfitLossStartDate = value; return this; }
public Date getProfitLossEndDate() { return ProfitLossEndDate; }
public ProjectProfitLossRequest setProfitLossEndDate(Date value) { this.ProfitLossEndDate = value; return this; }
}
public static class ProjectProfitLossResponse
{
public ResponseStatus ResponseStatus = null;
public ProjectCost ProjectProfitLoss = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ProjectProfitLossResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ProjectCost getProjectProfitLoss() { return ProjectProfitLoss; }
public ProjectProfitLossResponse setProjectProfitLoss(ProjectCost value) { this.ProjectProfitLoss = value; return this; }
}
public static class ProjectCost
{
public Integer ProjectID = null;
public BigDecimal Budget = null;
public BigDecimal CrewCost = null;
public BigDecimal EquipmentCost = null;
public BigDecimal MaterialCost = null;
public BigDecimal TotalCost = null;
public BigDecimal BilledCrewCost = null;
public BigDecimal BilledEquipmentCost = null;
public BigDecimal BilledMaterialCost = null;
public BigDecimal BilledTotalCost = null;
public Integer getProjectID() { return ProjectID; }
public ProjectCost setProjectID(Integer value) { this.ProjectID = value; return this; }
public BigDecimal getBudget() { return Budget; }
public ProjectCost setBudget(BigDecimal value) { this.Budget = value; return this; }
public BigDecimal getCrewCost() { return CrewCost; }
public ProjectCost setCrewCost(BigDecimal value) { this.CrewCost = value; return this; }
public BigDecimal getEquipmentCost() { return EquipmentCost; }
public ProjectCost setEquipmentCost(BigDecimal value) { this.EquipmentCost = value; return this; }
public BigDecimal getMaterialCost() { return MaterialCost; }
public ProjectCost setMaterialCost(BigDecimal value) { this.MaterialCost = value; return this; }
public BigDecimal getTotalCost() { return TotalCost; }
public ProjectCost setTotalCost(BigDecimal value) { this.TotalCost = value; return this; }
public BigDecimal getBilledCrewCost() { return BilledCrewCost; }
public ProjectCost setBilledCrewCost(BigDecimal value) { this.BilledCrewCost = value; return this; }
public BigDecimal getBilledEquipmentCost() { return BilledEquipmentCost; }
public ProjectCost setBilledEquipmentCost(BigDecimal value) { this.BilledEquipmentCost = value; return this; }
public BigDecimal getBilledMaterialCost() { return BilledMaterialCost; }
public ProjectCost setBilledMaterialCost(BigDecimal value) { this.BilledMaterialCost = value; return this; }
public BigDecimal getBilledTotalCost() { return BilledTotalCost; }
public ProjectCost setBilledTotalCost(BigDecimal value) { this.BilledTotalCost = value; return this; }
}
}
Java ProjectProfitLossRequest 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/Project/ProfitLoss/{ProjectID}/{ProfitLossStartDate}/{ProfitLossEndDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectProfitLoss":{"ProjectID":0,"Budget":0,"CrewCost":0,"EquipmentCost":0,"MaterialCost":0,"TotalCost":0,"BilledCrewCost":0,"BilledEquipmentCost":0,"BilledMaterialCost":0,"BilledTotalCost":0}}