POST api/ProductAdmin/AddClass

“AddClass”的文档。

Request Information

Parameters

NameDescriptionAdditional information
entity
“entity”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Desc": "sample string 3",
  "Picture": "sample string 4",
  "OrderBy": 5,
  "ProductId": 6,
  "Status": 7
}

application/xml, text/xml

Sample:
<ClassSubmitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimplePromotion.Models">
  <Desc>sample string 3</Desc>
  <Id>1</Id>
  <OrderBy>5</OrderBy>
  <Picture>sample string 4</Picture>
  <ProductId>6</ProductId>
  <Status>7</Status>
  <Title>sample string 2</Title>
</ClassSubmitModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'ClassSubmitModel'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Success": 1,
  "Message": "sample string 2",
  "DataId": "sample string 3",
  "Uid": "sample string 4",
  "UserId": 5
}

application/xml, text/xml

Sample:
<ReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimplePromotion.Models.Admin">
  <DataId>sample string 3</DataId>
  <Message>sample string 2</Message>
  <Success>1</Success>
  <Uid>sample string 4</Uid>
  <UserId>5</UserId>
</ReturnModel>