GET api/Rule/GetCurRuleList

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RuleDTO
NameDescriptionTypeAdditional information
RuleName

string

None.

Type

EnumRuleType

None.

Remark

string

String length: inclusive between 0 and 200

RuleConfigs

Collection of RuleConfigDTO

None.

Id

integer

None.

CreateBy

创建人

string

None.

CreateTime

创建时间

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RuleName": "sample string 1",
    "Type": 1,
    "Remark": "sample string 2",
    "RuleConfigs": [
      {
        "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-21T16:51:45.105618+08:00"
      },
      {
        "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-21T16:51:45.105618+08:00"
      }
    ],
    "Id": 3,
    "CreateBy": "sample string 5",
    "CreateTime": "2019-04-21T16:51:45.105618+08:00"
  },
  {
    "RuleName": "sample string 1",
    "Type": 1,
    "Remark": "sample string 2",
    "RuleConfigs": [
      {
        "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-21T16:51:45.105618+08:00"
      },
      {
        "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-21T16:51:45.105618+08:00"
      }
    ],
    "Id": 3,
    "CreateBy": "sample string 5",
    "CreateTime": "2019-04-21T16:51:45.105618+08:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfRuleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <RuleDTO>
    <CreateBy>sample string 5</CreateBy>
    <CreateId>1</CreateId>
    <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
    <Id>3</Id>
    <IsObsoleted>true</IsObsoleted>
    <ModifyBy>sample string 4</ModifyBy>
    <ModifyId>1</ModifyId>
    <ModifyTime>2019-04-21T16:51:45.105618+08:00</ModifyTime>
    <Remark>sample string 2</Remark>
    <RuleConfigs>
      <RuleConfigDTO>
        <CreateBy>sample string 7</CreateBy>
        <CreateId>1</CreateId>
        <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
        <Id>5</Id>
        <IsObsoleted>true</IsObsoleted>
        <ModifyBy>sample string 6</ModifyBy>
        <ModifyId>1</ModifyId>
        <ModifyTime>2019-04-21T16:51:45.105618+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>
      <RuleConfigDTO>
        <CreateBy>sample string 7</CreateBy>
        <CreateId>1</CreateId>
        <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
        <Id>5</Id>
        <IsObsoleted>true</IsObsoleted>
        <ModifyBy>sample string 6</ModifyBy>
        <ModifyId>1</ModifyId>
        <ModifyTime>2019-04-21T16:51:45.105618+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>
    </RuleConfigs>
    <RuleName>sample string 1</RuleName>
    <Type>SqlQuery</Type>
  </RuleDTO>
  <RuleDTO>
    <CreateBy>sample string 5</CreateBy>
    <CreateId>1</CreateId>
    <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
    <Id>3</Id>
    <IsObsoleted>true</IsObsoleted>
    <ModifyBy>sample string 4</ModifyBy>
    <ModifyId>1</ModifyId>
    <ModifyTime>2019-04-21T16:51:45.105618+08:00</ModifyTime>
    <Remark>sample string 2</Remark>
    <RuleConfigs>
      <RuleConfigDTO>
        <CreateBy>sample string 7</CreateBy>
        <CreateId>1</CreateId>
        <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
        <Id>5</Id>
        <IsObsoleted>true</IsObsoleted>
        <ModifyBy>sample string 6</ModifyBy>
        <ModifyId>1</ModifyId>
        <ModifyTime>2019-04-21T16:51:45.105618+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>
      <RuleConfigDTO>
        <CreateBy>sample string 7</CreateBy>
        <CreateId>1</CreateId>
        <CreateTime>2019-04-21T16:51:45.105618+08:00</CreateTime>
        <Id>5</Id>
        <IsObsoleted>true</IsObsoleted>
        <ModifyBy>sample string 6</ModifyBy>
        <ModifyId>1</ModifyId>
        <ModifyTime>2019-04-21T16:51:45.105618+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>
    </RuleConfigs>
    <RuleName>sample string 1</RuleName>
    <Type>SqlQuery</Type>
  </RuleDTO>
</ArrayOfRuleDTO>