GET api/Leave/GetWeekOffDaysByDateRange?APIKey={APIKey}&StartDate={StartDate}&EndDate={EndDate}&UserID={UserID}

API to get week offs

Request Information

URI Parameters

NameDescriptionTypeAdditional information
APIKey

string

None.

StartDate

date

None.

EndDate

date

None.

UserID

integer

None.

Body Parameters

None.

Response Information

Resource Description

WeekOffDaysResponse
NameDescriptionTypeAdditional information
WeekOffResultList

Collection of WeekOffDaysDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "weekOffResultList": [
    {
      "userID": 1,
      "day": 2,
      "dayName": "sample string 3",
      "month": 4,
      "monthName": "sample string 5",
      "year": 6,
      "weekOffDate": "2025-07-17T03:50:23.5773708+00:00"
    },
    {
      "userID": 1,
      "day": 2,
      "dayName": "sample string 3",
      "month": 4,
      "monthName": "sample string 5",
      "year": 6,
      "weekOffDate": "2025-07-17T03:50:23.5773708+00:00"
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<WeekOffDaysResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel">
  <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord>
  <WeekOffResultList>
    <WeekOffDaysDataModel>
      <Day>2</Day>
      <DayName>sample string 3</DayName>
      <Month>4</Month>
      <MonthName>sample string 5</MonthName>
      <UserID>1</UserID>
      <WeekOffDate>2025-07-17T03:50:23.5773708+00:00</WeekOffDate>
      <Year>6</Year>
    </WeekOffDaysDataModel>
    <WeekOffDaysDataModel>
      <Day>2</Day>
      <DayName>sample string 3</DayName>
      <Month>4</Month>
      <MonthName>sample string 5</MonthName>
      <UserID>1</UserID>
      <WeekOffDate>2025-07-17T03:50:23.5773708+00:00</WeekOffDate>
      <Year>6</Year>
    </WeekOffDaysDataModel>
  </WeekOffResultList>
</WeekOffDaysResponse>

multipart/form-data

Sample:
<WeekOffDaysResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord><WeekOffResultList><WeekOffDaysDataModel><Day>2</Day><DayName>sample string 3</DayName><Month>4</Month><MonthName>sample string 5</MonthName><UserID>1</UserID><WeekOffDate>2025-07-17T03:50:23.5773708+00:00</WeekOffDate><Year>6</Year></WeekOffDaysDataModel><WeekOffDaysDataModel><Day>2</Day><DayName>sample string 3</DayName><Month>4</Month><MonthName>sample string 5</MonthName><UserID>1</UserID><WeekOffDate>2025-07-17T03:50:23.5773708+00:00</WeekOffDate><Year>6</Year></WeekOffDaysDataModel></WeekOffResultList></WeekOffDaysResponse>