POST api/RuleConfig/AddRuleConfigSubmit

Request Information

URI Parameters

None.

Body Parameters

RuleConfigDTO
NameDescriptionTypeAdditional information
RuleConfigName

string

None.

ConfigKey

string

Required

ConfigValue

string

None.

RuleId

integer

Required

ConfigType

EnumRuleConfigKeyType

Required

Id

integer

None.

CreateBy

创建人

string

None.

CreateTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "RuleConfigName": "sample string 1",
  "ConfigKey": "sample string 2",
  "ConfigValue": "sample string 3",
  "RuleId": 4,
  "ConfigType": 1,
  "Id": 5,
  "CreateBy": "sample string 7",
  "CreateTime": "2019-04-23T00:54:50.7931568+08:00"
}

application/xml, text/xml

Sample:
<RuleConfigDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreateBy>sample string 7</CreateBy>
  <CreateId>1</CreateId>
  <CreateTime>2019-04-23T00:54:50.7931568+08:00</CreateTime>
  <Id>5</Id>
  <IsObsoleted>true</IsObsoleted>
  <ModifyBy>sample string 6</ModifyBy>
  <ModifyId>1</ModifyId>
  <ModifyTime>2019-04-23T00:54:50.7931568+08:00</ModifyTime>
  <ConfigKey>sample string 2</ConfigKey>
  <ConfigType>SqlStatement</ConfigType>
  <ConfigValue>sample string 3</ConfigValue>
  <RuleConfigName>sample string 1</RuleConfigName>
  <RuleId>4</RuleId>
</RuleConfigDTO>

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

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>