POST api/BulkProductsNonFood

Request Information

URI Parameters

None.

Body Parameters

Collection of ProductModelCode
NameDescriptionTypeAdditional information
Code

string

None.

Price

decimal number

None.

Group

integer

None.

ProModel

Collection of ProductModel

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Code": "sample string 1",
    "Price": 2.0,
    "Group": 3,
    "ProModel": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "ShortDescription": "sample string 3",
        "Sku": "sample string 4",
        "Price": 5.0,
        "StockQuantity": 6,
        "Color": "sample string 7",
        "Size": "sample string 8",
        "Code": "sample string 9",
        "Percentage": 10
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "ShortDescription": "sample string 3",
        "Sku": "sample string 4",
        "Price": 5.0,
        "StockQuantity": 6,
        "Color": "sample string 7",
        "Size": "sample string 8",
        "Code": "sample string 9",
        "Percentage": 10
      }
    ]
  },
  {
    "Code": "sample string 1",
    "Price": 2.0,
    "Group": 3,
    "ProModel": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "ShortDescription": "sample string 3",
        "Sku": "sample string 4",
        "Price": 5.0,
        "StockQuantity": 6,
        "Color": "sample string 7",
        "Size": "sample string 8",
        "Code": "sample string 9",
        "Percentage": 10
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "ShortDescription": "sample string 3",
        "Sku": "sample string 4",
        "Price": 5.0,
        "StockQuantity": 6,
        "Color": "sample string 7",
        "Size": "sample string 8",
        "Code": "sample string 9",
        "Percentage": 10
      }
    ]
  }
]

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 'List`1'.

Response Information

Resource Description

ProductModelCode
NameDescriptionTypeAdditional information
Code

string

None.

Price

decimal number

None.

Group

integer

None.

ProModel

Collection of ProductModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Price": 2.0,
  "Group": 3,
  "ProModel": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "ShortDescription": "sample string 3",
      "Sku": "sample string 4",
      "Price": 5.0,
      "StockQuantity": 6,
      "Color": "sample string 7",
      "Size": "sample string 8",
      "Code": "sample string 9",
      "Percentage": 10
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "ShortDescription": "sample string 3",
      "Sku": "sample string 4",
      "Price": 5.0,
      "StockQuantity": 6,
      "Color": "sample string 7",
      "Size": "sample string 8",
      "Code": "sample string 9",
      "Percentage": 10
    }
  ]
}