| GET,PUT,POST,DELETE | /{Workspace}/LaborItem | ||
|---|---|---|---|
| GET,PUT,POST,DELETE | /{Workspace}/LaborItem/{ObjectId} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.PricingEngine
Namespace Global
Namespace Field2Office.API.Model.PricingEngine
Public Partial Class LaborItem
Public Overridable Property ObjectId As String
Public Overridable Property Workspace As String
Public Overridable Property ItemTypeId As String
Public Overridable Property Price As Nullable(Of Double)
Public Overridable Property ItemTypeName As String
Public Overridable Property TimeWorked As Nullable(Of Double)
Public Overridable Property TimeCharged As Nullable(Of Double)
Public Overridable Property StartTime As String
Public Overridable Property EndTime As String
Public Overridable Property UserId As String
Public Overridable Property Rate As Nullable(Of Double)
Public Overridable Property OwningTaskId As String
Public Overridable Property StartStatus As String
Public Overridable Property EndStatus As String
Public Overridable Property StartEventId As String
Public Overridable Property EndEventId As String
Public Overridable Property Qty As Nullable(Of Double)
End Class
End Namespace
End Namespace
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.
POST /{Workspace}/LaborItem HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
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
}