| GET,PUT,POST | /{Workspace}/InventoryItemType | ||
|---|---|---|---|
| GET,PUT,POST | /{Workspace}/InventoryItemType/{ObjectId} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Inventory
Namespace Global
Namespace Field2Office.API.Model.Inventory
Public Partial Class InventoryItemType
Inherits InventoryTreeNode
Public Sub New()
Data = New Dictionary(Of String, String)
End Sub
Public Overridable Property Type As String
Public Overridable Property ObjectId As String
Public Overridable Property Workspace As String
Public Overridable Property ExternalId As String
Public Overridable Property Created As String
Public Overridable Property LastUpdated As String
Public Overridable Property ItemType As String
Public Overridable Property Desc As String
Public Overridable Property VendorNum As String
Public Overridable Property PurchasingUOM As String
Public Overridable Property SalesUOM As String
Public Overridable Property ReorderLevel As Nullable(Of Integer)
Public Overridable Property ReorderQty As Nullable(Of Integer)
Public Overridable Property DefaultUnitCost As Nullable(Of Double)
Public Overridable Property DefaultUnitPrice As Nullable(Of Double)
Public Overridable Property Barcode As String
Public Overridable Property UseSerialNumbers As Nullable(Of Boolean)
Public Overridable Property Template As String
Public Overridable Property Data As Dictionary(Of String, String)
Public Overridable Property Enabled As Nullable(Of Boolean)
Public Overridable Property ParentCategoryId As String
Public Overridable Property IncludeInactive As Boolean
End Class
Public Partial Class InventoryTreeNode
Public Overridable Property Type As String
Public Overridable Property DescendantCount As Integer
End Class
End Namespace
End Namespace
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}/InventoryItemType HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Type":"ItemType","ObjectId":"String","Workspace":"String","ExternalId":"String","Created":"String","LastUpdated":"String","ItemType":"String","Desc":"String","VendorNum":"String","PurchasingUOM":"String","SalesUOM":"String","ReorderLevel":0,"ReorderQty":0,"DefaultUnitCost":0,"DefaultUnitPrice":0,"Barcode":"String","UseSerialNumbers":false,"Template":"String","Data":{"String":"String"},"Enabled":false,"ParentCategoryId":"String","IncludeInactive":false,"DescendantCount":0}