POST api/Base/AddLeaveInfo
Request Information
URI Parameters
None.
Body Parameters
LeaveInfoModelName | Description | Type | Additional information |
---|---|---|---|
LeaveStaff | string |
None. |
|
Applicant | string |
None. |
|
StartDate | date |
None. |
|
StartTime | string |
None. |
|
EndDate | date |
None. |
|
EndTime | string |
None. |
|
Days | decimal number |
None. |
|
Content | string |
None. |
|
Type | string |
None. |
|
Msg | Collection of LeaveMsg |
None. |
Request Formats
application/json, text/json
Sample:
{ "LeaveStaff": "sample string 1", "Applicant": "sample string 2", "StartDate": "2024-10-09T05:14:41.7637636+08:00", "StartTime": "sample string 4", "EndDate": "2024-10-09T05:14:41.7637636+08:00", "EndTime": "sample string 6", "Days": 7.1, "Content": "sample string 8", "Type": "sample string 9", "Msg": [ { "TeacherGUID": "sample string 1", "Title": "sample string 2", "Num": 3, "GUID": "sample string 4", "Type": "sample string 5", "Date": "2024-10-09T05:14:41.7656856+08:00" }, { "TeacherGUID": "sample string 1", "Title": "sample string 2", "Num": 3, "GUID": "sample string 4", "Type": "sample string 5", "Date": "2024-10-09T05:14:41.7656856+08:00" } ] }
application/xml, text/xml
Sample:
<LeaveInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineEducationModel"> <Applicant>sample string 2</Applicant> <Content>sample string 8</Content> <Days>7.1</Days> <EndDate>2024-10-09T05:14:41.7637636+08:00</EndDate> <EndTime>sample string 6</EndTime> <LeaveStaff>sample string 1</LeaveStaff> <Msg> <LeaveMsg> <Date>2024-10-09T05:14:41.7656856+08:00</Date> <GUID>sample string 4</GUID> <Num>3</Num> <TeacherGUID>sample string 1</TeacherGUID> <Title>sample string 2</Title> <Type>sample string 5</Type> </LeaveMsg> <LeaveMsg> <Date>2024-10-09T05:14:41.7656856+08:00</Date> <GUID>sample string 4</GUID> <Num>3</Num> <TeacherGUID>sample string 1</TeacherGUID> <Title>sample string 2</Title> <Type>sample string 5</Type> </LeaveMsg> </Msg> <StartDate>2024-10-09T05:14:41.7637636+08:00</StartDate> <StartTime>sample string 4</StartTime> <Type>sample string 9</Type> </LeaveInfoModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |