POST api/ProductAdmin/AddActivity

“AddActivity”的文档。

Request Information

Parameters

NameDescriptionAdditional information
entity
“entity”的文档。

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "QRAddress": "sample string 3",
  "Descript": "sample string 4",
  "STATUS": 5,
  "ClassId": 6,
  "IsCheck": 7,
  "Price": 8.0,
  "Lablel": "sample string 9",
  "ClassName": "sample string 10",
  "EnterAddress": "sample string 11"
}

application/xml, text/xml

Sample:
<ActityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimplePromotion.Models.Admin">
  <ClassId>6</ClassId>
  <ClassName>sample string 10</ClassName>
  <Descript>sample string 4</Descript>
  <EnterAddress>sample string 11</EnterAddress>
  <Id>1</Id>
  <IsCheck>7</IsCheck>
  <Lablel>sample string 9</Lablel>
  <Name>sample string 2</Name>
  <Price>8</Price>
  <QRAddress>sample string 3</QRAddress>
  <STATUS>5</STATUS>
</ActityModel>

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

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>