POST api/Rule/AddRuleSubmit

Request Information

URI Parameters

None.

Body Parameters

RuleDTO
NameDescriptionTypeAdditional information
RuleName

string

None.

Type

EnumRuleType

None.

Remark

string

String length: inclusive between 0 and 200

Id

编号

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RuleName": "sample string 1",
  "Type": 1,
  "Remark": "sample string 2",
  "Id": 3
}

application/xml, text/xml

Sample:
<RuleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreateBy>sample string 5</CreateBy>
  <CreateId>1</CreateId>
  <CreateTime>2018-12-14T13:33:32.3409774+08:00</CreateTime>
  <Id>3</Id>
  <IsObsoleted>true</IsObsoleted>
  <ModifyBy>sample string 4</ModifyBy>
  <ModifyId>1</ModifyId>
  <ModifyTime>2018-12-14T13:33:32.3409774+08:00</ModifyTime>
  <Remark>sample string 2</Remark>
  <RuleName>sample string 1</RuleName>
  <Type>SqlQuery</Type>
</RuleDTO>

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

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>