GET api/AssignTimetable/GetFreeDatesAndHolidays?pDiaryNum={pDiaryNum}&pFromDate={pFromDate}&pToDate={pToDate}&pDatesOnly={pDatesOnly}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pDiaryNum

integer

Required

pFromDate

date

Required

pToDate

date

Required

pDatesOnly

boolean

Required

Body Parameters

None.

Response Information

Resource Description

FreeDatesAndHolidays
NameDescriptionTypeAdditional information
FreeDates

Collection of DatesWithAmount

None.

HoliDays

Collection of Holiday

None.

Response Formats

application/json, text/json

Sample:
{
  "FreeDates": [
    {
      "Date": "2019-10-24T08:26:35.6196434+03:00",
      "Amount": 2
    },
    {
      "Date": "2019-10-24T08:26:35.6196434+03:00",
      "Amount": 2
    }
  ],
  "HoliDays": [
    {
      "holidate": "2019-10-24T08:26:35.6196434+03:00",
      "holidesc": "sample string 2",
      "make_turn": "sample string 3",
      "is_work": "sample string 4"
    },
    {
      "holidate": "2019-10-24T08:26:35.6196434+03:00",
      "holidesc": "sample string 2",
      "make_turn": "sample string 3",
      "is_work": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<FreeDatesAndHolidays xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.AssignTimetableManage">
  <FreeDates>
    <DatesWithAmount>
      <Amount>2</Amount>
      <Date>2019-10-24T08:26:35.6196434+03:00</Date>
    </DatesWithAmount>
    <DatesWithAmount>
      <Amount>2</Amount>
      <Date>2019-10-24T08:26:35.6196434+03:00</Date>
    </DatesWithAmount>
  </FreeDates>
  <HoliDays xmlns:d2p1="http://schemas.datacontract.org/2004/07/CustDemog">
    <d2p1:Holiday>
      <d2p1:holidate>2019-10-24T08:26:35.6196434+03:00</d2p1:holidate>
      <d2p1:holidesc>sample string 2</d2p1:holidesc>
      <d2p1:is_work>sample string 4</d2p1:is_work>
      <d2p1:make_turn>sample string 3</d2p1:make_turn>
    </d2p1:Holiday>
    <d2p1:Holiday>
      <d2p1:holidate>2019-10-24T08:26:35.6196434+03:00</d2p1:holidate>
      <d2p1:holidesc>sample string 2</d2p1:holidesc>
      <d2p1:is_work>sample string 4</d2p1:is_work>
      <d2p1:make_turn>sample string 3</d2p1:make_turn>
    </d2p1:Holiday>
  </HoliDays>
</FreeDatesAndHolidays>

application/bson

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