GET api/Rule/GetModelById/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

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-23T00:41:45.0585944+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-23T00:41:45.0585944+08:00"
    }
  ],
  "Id": 3,
  "CreateBy": "sample string 5",
  "CreateTime": "2019-04-23T00:41:45.0585944+08:00"
}

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>2019-04-23T00:41:45.0585944+08:00</CreateTime>
  <Id>3</Id>
  <IsObsoleted>true</IsObsoleted>
  <ModifyBy>sample string 4</ModifyBy>
  <ModifyId>1</ModifyId>
  <ModifyTime>2019-04-23T00:41:45.0585944+08:00</ModifyTime>
  <Remark>sample string 2</Remark>
  <RuleConfigs>
    <RuleConfigDTO>
      <CreateBy>sample string 7</CreateBy>
      <CreateId>1</CreateId>
      <CreateTime>2019-04-23T00:41:45.0585944+08:00</CreateTime>
      <Id>5</Id>
      <IsObsoleted>true</IsObsoleted>
      <ModifyBy>sample string 6</ModifyBy>
      <ModifyId>1</ModifyId>
      <ModifyTime>2019-04-23T00:41:45.0585944+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-23T00:41:45.0585944+08:00</CreateTime>
      <Id>5</Id>
      <IsObsoleted>true</IsObsoleted>
      <ModifyBy>sample string 6</ModifyBy>
      <ModifyId>1</ModifyId>
      <ModifyTime>2019-04-23T00:41:45.0585944+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>