POST api/Clothing/PostToClothing

Request Information

URI Parameters

None.

Body Parameters

CLOTHING
NameDescriptionTypeAdditional information
ClothingNum

integer

None.

ClothingID

integer

None.

ShopID

integer

None.

ClothingName

string

None.

ClothingType

string

None.

ClothingCategory

string

None.

ClothingCostPrice

decimal number

None.

ClothingSellPrice

decimal number

None.

ClothingDiscPrice

decimal number

None.

ClothingLevel

integer

None.

ClothingVideoId

string

None.

ClothingImgUrl

string

None.

ClothingImgUrlAlt

string

None.

ClothingImgUrlThumb

string

None.

ClothingSizeChart

string

None.

ClothingSizeChartNum

integer

None.

ClothingInfo_1

string

None.

ClothingInfo_2

string

None.

Visible

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClothingNum": 1,
  "ClothingID": 2,
  "ShopID": 1,
  "ClothingName": "sample string 3",
  "ClothingType": "sample string 4",
  "ClothingCategory": "sample string 5",
  "ClothingCostPrice": 6.0,
  "ClothingSellPrice": 7.0,
  "ClothingDiscPrice": 1.0,
  "ClothingLevel": 8,
  "ClothingVideoId": "sample string 9",
  "ClothingImgUrl": "sample string 10",
  "ClothingImgUrlAlt": "sample string 11",
  "ClothingImgUrlThumb": "sample string 12",
  "ClothingSizeChart": "sample string 13",
  "ClothingSizeChartNum": 1,
  "ClothingInfo_1": "sample string 14",
  "ClothingInfo_2": "sample string 15",
  "Visible": 1
}

application/xml, text/xml

Sample:
<CLOTHING xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JDataAccess">
  <ClothingCategory>sample string 5</ClothingCategory>
  <ClothingCostPrice>6</ClothingCostPrice>
  <ClothingDiscPrice>1</ClothingDiscPrice>
  <ClothingID>2</ClothingID>
  <ClothingImgUrl>sample string 10</ClothingImgUrl>
  <ClothingImgUrlAlt>sample string 11</ClothingImgUrlAlt>
  <ClothingImgUrlThumb>sample string 12</ClothingImgUrlThumb>
  <ClothingInfo_1>sample string 14</ClothingInfo_1>
  <ClothingInfo_2>sample string 15</ClothingInfo_2>
  <ClothingLevel>8</ClothingLevel>
  <ClothingName>sample string 3</ClothingName>
  <ClothingNum>1</ClothingNum>
  <ClothingSellPrice>7</ClothingSellPrice>
  <ClothingSizeChart>sample string 13</ClothingSizeChart>
  <ClothingSizeChartNum>1</ClothingSizeChartNum>
  <ClothingType>sample string 4</ClothingType>
  <ClothingVideoId>sample string 9</ClothingVideoId>
  <ShopID>1</ShopID>
  <Visible>1</Visible>
</CLOTHING>

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

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.