POST api/TimeTableManagement/ADURemoteDiary?pType={pType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pType

string

Required

Body Parameters

RemoteDiary
NameDescriptionTypeAdditional information
auto_code

integer

Required

remote_diary_name

string

Required

Max length: 30

diary_color

string

Max length: 10

remote_diary_code

integer

Required

remote_branch_code

integer

Required

doctor_or_room

string

Required

Max length: 6

active

string

Required

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

Request Formats

application/json, text/json

Sample:
{
  "auto_code": 1,
  "remote_diary_name": "sample string 2",
  "diary_color": "sample string 3",
  "remote_diary_code": 4,
  "remote_branch_code": 5,
  "doctor_or_room": "sample string 6",
  "active": "sample string 7"
}

application/xml, text/xml

Sample:
<RemoteDiary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 7</active>
  <auto_code>1</auto_code>
  <diary_color>sample string 3</diary_color>
  <doctor_or_room>sample string 6</doctor_or_room>
  <remote_branch_code>5</remote_branch_code>
  <remote_diary_code>4</remote_diary_code>
  <remote_diary_name>sample string 2</remote_diary_name>
</RemoteDiary>

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

application/bson

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

Response Information

Resource Description

RemoteDiary
NameDescriptionTypeAdditional information
auto_code

integer

Required

remote_diary_name

string

Required

Max length: 30

diary_color

string

Max length: 10

remote_diary_code

integer

Required

remote_branch_code

integer

Required

doctor_or_room

string

Required

Max length: 6

active

string

Required

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

Response Formats

application/json, text/json

Sample:
{
  "auto_code": 1,
  "remote_diary_name": "sample string 2",
  "diary_color": "sample string 3",
  "remote_diary_code": 4,
  "remote_branch_code": 5,
  "doctor_or_room": "sample string 6",
  "active": "sample string 7"
}

application/xml, text/xml

Sample:
<RemoteDiary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 7</active>
  <auto_code>1</auto_code>
  <diary_color>sample string 3</diary_color>
  <doctor_or_room>sample string 6</doctor_or_room>
  <remote_branch_code>5</remote_branch_code>
  <remote_diary_code>4</remote_diary_code>
  <remote_diary_name>sample string 2</remote_diary_name>
</RemoteDiary>

application/bson

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