POST api/SHOPPRODUCT

Request Information

URI Parameters

None.

Body Parameters

SHOPITEMS
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

origin

string

None.

quantity

decimal number

None.

categ

integer

None.

weight

string

None.

price

decimal number

None.

disc

decimal number

None.

fprice

decimal number

None.

description

string

None.

users

string

None.

dates

string

None.

QR

string

None.

WS

string

None.

CUS

Collection of SHOPITEMSCUSI

None.

SUB

Collection of SHOPITEMSSUBI

None.

IMG

Collection of SHOPITEMSIMG

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "origin": "sample string 3",
  "quantity": 4.0,
  "categ": 5,
  "weight": "sample string 6",
  "price": 7.0,
  "disc": 8.0,
  "fprice": 9.0,
  "description": "sample string 10",
  "users": "sample string 11",
  "dates": "sample string 12",
  "QR": "sample string 13",
  "WS": "sample string 14",
  "CUS": [
    {
      "cid": 1,
      "name": "sample string 2",
      "chko": 3
    },
    {
      "cid": 1,
      "name": "sample string 2",
      "chko": 3
    }
  ],
  "SUB": [
    {
      "cid": 1,
      "chko": 2,
      "name": "sample string 3"
    },
    {
      "cid": 1,
      "chko": 2,
      "name": "sample string 3"
    }
  ],
  "IMG": [
    {
      "cid": 1,
      "img": "sample string 2",
      "imgext": "sample string 3"
    },
    {
      "cid": 1,
      "img": "sample string 2",
      "imgext": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<SHOPITEMS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WEBAPIDEMO">
  <CUS>
    <SHOPITEMSCUSI>
      <chko>3</chko>
      <cid>1</cid>
      <name>sample string 2</name>
    </SHOPITEMSCUSI>
    <SHOPITEMSCUSI>
      <chko>3</chko>
      <cid>1</cid>
      <name>sample string 2</name>
    </SHOPITEMSCUSI>
  </CUS>
  <IMG>
    <SHOPITEMSIMG>
      <cid>1</cid>
      <img>sample string 2</img>
      <imgext>sample string 3</imgext>
    </SHOPITEMSIMG>
    <SHOPITEMSIMG>
      <cid>1</cid>
      <img>sample string 2</img>
      <imgext>sample string 3</imgext>
    </SHOPITEMSIMG>
  </IMG>
  <QR>sample string 13</QR>
  <SUB>
    <SHOPITEMSSUBI>
      <chko>2</chko>
      <cid>1</cid>
      <name>sample string 3</name>
    </SHOPITEMSSUBI>
    <SHOPITEMSSUBI>
      <chko>2</chko>
      <cid>1</cid>
      <name>sample string 3</name>
    </SHOPITEMSSUBI>
  </SUB>
  <WS>sample string 14</WS>
  <categ>5</categ>
  <dates>sample string 12</dates>
  <description>sample string 10</description>
  <disc>8</disc>
  <fprice>9</fprice>
  <id>1</id>
  <name>sample string 2</name>
  <origin>sample string 3</origin>
  <price>7</price>
  <quantity>4</quantity>
  <users>sample string 11</users>
  <weight>sample string 6</weight>
</SHOPITEMS>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.