| GET,PUT,POST,DELETE | /{Workspace}/LaborItem | ||
|---|---|---|---|
| GET,PUT,POST,DELETE | /{Workspace}/LaborItem/{ObjectId} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class LaborItem
{
public String ObjectId = null;
public String Workspace = null;
public String ItemTypeId = null;
public Double Price = null;
public String ItemTypeName = null;
public Double TimeWorked = null;
public Double TimeCharged = null;
public String StartTime = null;
public String EndTime = null;
public String UserId = null;
public Double Rate = null;
public String OwningTaskId = null;
public String StartStatus = null;
public String EndStatus = null;
public String StartEventId = null;
public String EndEventId = null;
public Double Qty = null;
public String getObjectId() { return ObjectId; }
public LaborItem setObjectId(String value) { this.ObjectId = value; return this; }
public String getWorkspace() { return Workspace; }
public LaborItem setWorkspace(String value) { this.Workspace = value; return this; }
public String getItemTypeId() { return ItemTypeId; }
public LaborItem setItemTypeId(String value) { this.ItemTypeId = value; return this; }
public Double getPrice() { return Price; }
public LaborItem setPrice(Double value) { this.Price = value; return this; }
public String getItemTypeName() { return ItemTypeName; }
public LaborItem setItemTypeName(String value) { this.ItemTypeName = value; return this; }
public Double getTimeWorked() { return TimeWorked; }
public LaborItem setTimeWorked(Double value) { this.TimeWorked = value; return this; }
public Double getTimeCharged() { return TimeCharged; }
public LaborItem setTimeCharged(Double value) { this.TimeCharged = value; return this; }
public String getStartTime() { return StartTime; }
public LaborItem setStartTime(String value) { this.StartTime = value; return this; }
public String getEndTime() { return EndTime; }
public LaborItem setEndTime(String value) { this.EndTime = value; return this; }
public String getUserId() { return UserId; }
public LaborItem setUserId(String value) { this.UserId = value; return this; }
public Double getRate() { return Rate; }
public LaborItem setRate(Double value) { this.Rate = value; return this; }
public String getOwningTaskId() { return OwningTaskId; }
public LaborItem setOwningTaskId(String value) { this.OwningTaskId = value; return this; }
public String getStartStatus() { return StartStatus; }
public LaborItem setStartStatus(String value) { this.StartStatus = value; return this; }
public String getEndStatus() { return EndStatus; }
public LaborItem setEndStatus(String value) { this.EndStatus = value; return this; }
public String getStartEventId() { return StartEventId; }
public LaborItem setStartEventId(String value) { this.StartEventId = value; return this; }
public String getEndEventId() { return EndEventId; }
public LaborItem setEndEventId(String value) { this.EndEventId = value; return this; }
public Double getQty() { return Qty; }
public LaborItem setQty(Double value) { this.Qty = value; return this; }
}
}
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/LaborItem HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ObjectId":"String","Workspace":"String","ItemTypeId":"String","Price":0,"ItemTypeName":"String","TimeWorked":0,"TimeCharged":0,"StartTime":"String","EndTime":"String","UserId":"String","Rate":0,"OwningTaskId":"String","StartStatus":"String","EndStatus":"String","StartEventId":"String","EndEventId":"String","Qty":0}