| GET,PUT,POST | /{Workspace}/InventoryItemType | ||
|---|---|---|---|
| GET,PUT,POST | /{Workspace}/InventoryItemType/{ObjectId} |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Inventory;
namespace Field2Office.API.Model.Inventory
{
public partial class InventoryItemType
: InventoryTreeNode
{
public InventoryItemType()
{
Data = new Dictionary<string, string>{};
}
public virtual string Type { get; set; }
public virtual string ObjectId { get; set; }
public virtual string Workspace { get; set; }
public virtual string ExternalId { get; set; }
public virtual string Created { get; set; }
public virtual string LastUpdated { get; set; }
public virtual string ItemType { get; set; }
public virtual string Desc { get; set; }
public virtual string VendorNum { get; set; }
public virtual string PurchasingUOM { get; set; }
public virtual string SalesUOM { get; set; }
public virtual int? ReorderLevel { get; set; }
public virtual int? ReorderQty { get; set; }
public virtual double? DefaultUnitCost { get; set; }
public virtual double? DefaultUnitPrice { get; set; }
public virtual string Barcode { get; set; }
public virtual bool? UseSerialNumbers { get; set; }
public virtual string Template { get; set; }
public virtual Dictionary<string, string> Data { get; set; }
public virtual bool? Enabled { get; set; }
public virtual string ParentCategoryId { get; set; }
public virtual bool IncludeInactive { get; set; }
}
public partial class InventoryTreeNode
{
public virtual string Type { get; set; }
public virtual int DescendantCount { get; set; }
}
}
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}