POST api/bom

Request Information

URI Parameters

None.

Body Parameters

m_BOM_Create
NameDescriptionTypeAdditional information
model_no

string

Required

Max length: 20

Min length: 5

model_color

string

Required

Max length: 2

worktype_id

string

Required

shoestype_id

string

Required

sextype_id

string

Required

box_id

integer

None.

designer_app

string

None.

grading

string

None.

issued

string

None.

pattern_created

string

None.

production_app

string

None.

size

Collection of m_BOM_Size

None.

mold

Collection of m_BOM_Mold

None.

images

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "model_no": "sample string 1",
  "model_color": "sample string 2",
  "worktype_id": "sample string 3",
  "shoestype_id": "sample string 4",
  "sextype_id": "sample string 5",
  "box_id": 6,
  "designer_app": "sample string 7",
  "grading": "sample string 8",
  "issued": "sample string 9",
  "pattern_created": "sample string 10",
  "production_app": "sample string 11",
  "size": [
    {
      "size": 1,
      "weight": 2.0,
      "box_id": 3,
      "width": 1.0,
      "length": 1.0,
      "height": 1.0,
      "barcode": "sample string 4",
      "remark": "sample string 5"
    },
    {
      "size": 1,
      "weight": 2.0,
      "box_id": 3,
      "width": 1.0,
      "length": 1.0,
      "height": 1.0,
      "barcode": "sample string 4",
      "remark": "sample string 5"
    }
  ],
  "mold": [
    {
      "mold_id": 1,
      "last_no": "sample string 2",
      "wood_no": "sample string 3"
    },
    {
      "mold_id": 1,
      "last_no": "sample string 2",
      "wood_no": "sample string 3"
    }
  ],
  "images": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<m_BOM_Create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.BOM">
  <box_id>6</box_id>
  <designer_app>sample string 7</designer_app>
  <grading>sample string 8</grading>
  <images xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </images>
  <issued>sample string 9</issued>
  <model_color>sample string 2</model_color>
  <model_no>sample string 1</model_no>
  <mold>
    <m_BOM_Mold>
      <last_no>sample string 2</last_no>
      <mold_id>1</mold_id>
      <wood_no>sample string 3</wood_no>
    </m_BOM_Mold>
    <m_BOM_Mold>
      <last_no>sample string 2</last_no>
      <mold_id>1</mold_id>
      <wood_no>sample string 3</wood_no>
    </m_BOM_Mold>
  </mold>
  <pattern_created>sample string 10</pattern_created>
  <production_app>sample string 11</production_app>
  <sextype_id>sample string 5</sextype_id>
  <shoestype_id>sample string 4</shoestype_id>
  <size>
    <m_BOM_Size>
      <barcode>sample string 4</barcode>
      <box_id>3</box_id>
      <height>1</height>
      <length>1</length>
      <remark>sample string 5</remark>
      <size>1</size>
      <weight>2</weight>
      <width>1</width>
    </m_BOM_Size>
    <m_BOM_Size>
      <barcode>sample string 4</barcode>
      <box_id>3</box_id>
      <height>1</height>
      <length>1</length>
      <remark>sample string 5</remark>
      <size>1</size>
      <weight>2</weight>
      <width>1</width>
    </m_BOM_Size>
  </size>
  <worktype_id>sample string 3</worktype_id>
</m_BOM_Create>

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 'm_BOM_Create'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.