POST Items/Create

Request Information

URI Parameters

None.

Body Parameters

itemMasterModel
NameDescriptionTypeAdditional information
ID

integer

None.

Item

string

None.

ItemGroupID

integer

None.

Price

decimal number

None.

PriceDate

string

None.

GetItemProperty

Collection of GetItemPropertyByID_Result

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Item": "sample string 2",
  "ItemGroupID": 1,
  "Price": 1.0,
  "PriceDate": "sample string 3",
  "GetItemProperty": [
    {
      "$id": "2",
      "ItemID": 1,
      "ItemGroupID": 1,
      "Price": 1.0,
      "ItemGroup": "sample string 2",
      "PropertyID": 3,
      "Property": "sample string 4",
      "Value": "sample string 5"
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<itemMasterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoldTouch.Models">
  <GetItemProperty>
    <GetItemPropertyByID_Result>
      <ItemGroup>sample string 2</ItemGroup>
      <ItemGroupID>1</ItemGroupID>
      <ItemID>1</ItemID>
      <Price>1</Price>
      <Property>sample string 4</Property>
      <PropertyID>3</PropertyID>
      <Value>sample string 5</Value>
    </GetItemPropertyByID_Result>
    <GetItemPropertyByID_Result>
      <ItemGroup>sample string 2</ItemGroup>
      <ItemGroupID>1</ItemGroupID>
      <ItemID>1</ItemID>
      <Price>1</Price>
      <Property>sample string 4</Property>
      <PropertyID>3</PropertyID>
      <Value>sample string 5</Value>
    </GetItemPropertyByID_Result>
  </GetItemProperty>
  <ID>1</ID>
  <Item>sample string 2</Item>
  <ItemGroupID>1</ItemGroupID>
  <Price>1</Price>
  <PriceDate>sample string 3</PriceDate>
</itemMasterModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'itemMasterModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.