POST api/StoreFG/PostAddFG

Request Information

URI Parameters

None.

Body Parameters

m_AddFG_FG
NameDescriptionTypeAdditional information
ord_id

integer

None.

remark

string

None.

workTypeId

integer

Required

op_id

integer

Required

totalAmountPerWorkType

integer

None.

models

Collection of m_AddFG_Model

None.

Request Formats

application/json, text/json

Sample:
{
  "ord_id": 1,
  "remark": "sample string 1",
  "workTypeId": 2,
  "op_id": 3,
  "totalAmountPerWorkType": 4,
  "models": [
    {
      "model": "sample string 1",
      "packing": "sample string 2",
      "locationId": 3,
      "colors": [
        {
          "color": "sample string 1",
          "sizes": [
            {
              "size": 1,
              "amount": 2
            },
            {
              "size": 1,
              "amount": 2
            }
          ]
        },
        {
          "color": "sample string 1",
          "sizes": [
            {
              "size": 1,
              "amount": 2
            },
            {
              "size": 1,
              "amount": 2
            }
          ]
        }
      ]
    },
    {
      "model": "sample string 1",
      "packing": "sample string 2",
      "locationId": 3,
      "colors": [
        {
          "color": "sample string 1",
          "sizes": [
            {
              "size": 1,
              "amount": 2
            },
            {
              "size": 1,
              "amount": 2
            }
          ]
        },
        {
          "color": "sample string 1",
          "sizes": [
            {
              "size": 1,
              "amount": 2
            },
            {
              "size": 1,
              "amount": 2
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<m_AddFG_FG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.FG">
  <models>
    <m_AddFG_Model>
      <colors>
        <m_AddFG_Color>
          <color>sample string 1</color>
          <sizes>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
          </sizes>
        </m_AddFG_Color>
        <m_AddFG_Color>
          <color>sample string 1</color>
          <sizes>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
          </sizes>
        </m_AddFG_Color>
      </colors>
      <locationId>3</locationId>
      <model>sample string 1</model>
      <packing>sample string 2</packing>
    </m_AddFG_Model>
    <m_AddFG_Model>
      <colors>
        <m_AddFG_Color>
          <color>sample string 1</color>
          <sizes>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
          </sizes>
        </m_AddFG_Color>
        <m_AddFG_Color>
          <color>sample string 1</color>
          <sizes>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
            <m_AddFG_Size>
              <amount>2</amount>
              <size>1</size>
            </m_AddFG_Size>
          </sizes>
        </m_AddFG_Color>
      </colors>
      <locationId>3</locationId>
      <model>sample string 1</model>
      <packing>sample string 2</packing>
    </m_AddFG_Model>
  </models>
  <op_id>3</op_id>
  <ord_id>1</ord_id>
  <remark>sample string 1</remark>
  <totalAmountPerWorkType>4</totalAmountPerWorkType>
  <workTypeId>2</workTypeId>
</m_AddFG_FG>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.