POST api/TestOnly/GetFilteredDiariesList

Request Information

URI Parameters

None.

Body Parameters

FilteredDiariesCriteria
NameDescriptionTypeAdditional information
ActiveOnly

boolean

None.

DepCode

integer

None.

NameLike

string

None.

BranchCodes

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ActiveOnly": true,
  "DepCode": 1,
  "NameLike": "sample string 2",
  "BranchCodes": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<FilteredDiariesCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <ActiveOnly>true</ActiveOnly>
  <BranchCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </BranchCodes>
  <DepCode>1</DepCode>
  <NameLike>sample string 2</NameLike>
</FilteredDiariesCriteria>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of DiariesRetriveResult
NameDescriptionTypeAdditional information
DiaryNum

integer

None.

DiaryName

string

None.

SpecCode

integer

None.

SpecDesc

string

None.

Description

string

None.

RoomCode

integer

None.

RoomDesc

string

None.

Active

string

None.

DepCode

integer

None.

Depname

string

None.

ReminderSms

string

None.

BranchCode

integer

None.

BranchName

string

None.

NeedSmoker

string

None.

NeedPacs

string

None.

WithTime

string

None.

color_for_display

string

None.

google_calender_id

string

None.

jump_message

string

None.

jump_sex

string

None.

jump_from_age

integer

None.

jump_to_age

integer

None.

jump_msg

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DiaryNum": 1,
    "DiaryName": "sample string 1",
    "SpecCode": 1,
    "SpecDesc": "sample string 2",
    "Description": "sample string 3",
    "RoomCode": 1,
    "RoomDesc": "sample string 4",
    "Active": "sample string 5",
    "DepCode": 1,
    "Depname": "sample string 6",
    "ReminderSms": "sample string 7",
    "BranchCode": 1,
    "BranchName": "sample string 8",
    "NeedSmoker": "sample string 9",
    "NeedPacs": "sample string 10",
    "WithTime": "sample string 11",
    "color_for_display": "sample string 12",
    "google_calender_id": "sample string 13",
    "jump_message": "sample string 14",
    "jump_sex": "sample string 15",
    "jump_from_age": 1,
    "jump_to_age": 1,
    "jump_msg": "sample string 16"
  },
  {
    "DiaryNum": 1,
    "DiaryName": "sample string 1",
    "SpecCode": 1,
    "SpecDesc": "sample string 2",
    "Description": "sample string 3",
    "RoomCode": 1,
    "RoomDesc": "sample string 4",
    "Active": "sample string 5",
    "DepCode": 1,
    "Depname": "sample string 6",
    "ReminderSms": "sample string 7",
    "BranchCode": 1,
    "BranchName": "sample string 8",
    "NeedSmoker": "sample string 9",
    "NeedPacs": "sample string 10",
    "WithTime": "sample string 11",
    "color_for_display": "sample string 12",
    "google_calender_id": "sample string 13",
    "jump_message": "sample string 14",
    "jump_sex": "sample string 15",
    "jump_from_age": 1,
    "jump_to_age": 1,
    "jump_msg": "sample string 16"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDiariesRetriveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <DiariesRetriveResult>
    <Active>sample string 5</Active>
    <BranchCode>1</BranchCode>
    <BranchName>sample string 8</BranchName>
    <DepCode>1</DepCode>
    <Depname>sample string 6</Depname>
    <Description>sample string 3</Description>
    <DiaryName>sample string 1</DiaryName>
    <DiaryNum>1</DiaryNum>
    <NeedPacs>sample string 10</NeedPacs>
    <NeedSmoker>sample string 9</NeedSmoker>
    <ReminderSms>sample string 7</ReminderSms>
    <RoomCode>1</RoomCode>
    <RoomDesc>sample string 4</RoomDesc>
    <SpecCode>1</SpecCode>
    <SpecDesc>sample string 2</SpecDesc>
    <WithTime>sample string 11</WithTime>
    <color_for_display>sample string 12</color_for_display>
    <google_calender_id>sample string 13</google_calender_id>
    <jump_from_age>1</jump_from_age>
    <jump_message>sample string 14</jump_message>
    <jump_msg>sample string 16</jump_msg>
    <jump_sex>sample string 15</jump_sex>
    <jump_to_age>1</jump_to_age>
  </DiariesRetriveResult>
  <DiariesRetriveResult>
    <Active>sample string 5</Active>
    <BranchCode>1</BranchCode>
    <BranchName>sample string 8</BranchName>
    <DepCode>1</DepCode>
    <Depname>sample string 6</Depname>
    <Description>sample string 3</Description>
    <DiaryName>sample string 1</DiaryName>
    <DiaryNum>1</DiaryNum>
    <NeedPacs>sample string 10</NeedPacs>
    <NeedSmoker>sample string 9</NeedSmoker>
    <ReminderSms>sample string 7</ReminderSms>
    <RoomCode>1</RoomCode>
    <RoomDesc>sample string 4</RoomDesc>
    <SpecCode>1</SpecCode>
    <SpecDesc>sample string 2</SpecDesc>
    <WithTime>sample string 11</WithTime>
    <color_for_display>sample string 12</color_for_display>
    <google_calender_id>sample string 13</google_calender_id>
    <jump_from_age>1</jump_from_age>
    <jump_message>sample string 14</jump_message>
    <jump_msg>sample string 16</jump_msg>
    <jump_sex>sample string 15</jump_sex>
    <jump_to_age>1</jump_to_age>
  </DiariesRetriveResult>
</ArrayOfDiariesRetriveResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.