GET api/Admin/DaySchedules/{id}

Gets the day schedule with the specified id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Day schedule id.

integer

Required

Body Parameters

None.

Remarks

If the day schedule is not found 404 Not found are returned.

Example

Gets the day schedule with id 1
GET: http://localhost/api/DaySchedules/1

Response Information

Resource Description

Returns 200 OK on success.

AdminGetDayScheduleResponse
NameDescriptionTypeAdditional information
Id

Schedule id.

integer

None.

DayOfWeek

Schedule name.

string

None.

StartTime

Schedule valid from date.

time interval

None.

EndTime

Schedule valid to date.

time interval

None.

CreatedBy

Created by identifier.

string

None.

CreatedDateTime

Created date and time.

date

None.

ChangedBy

Changed by identifier.

string

None.

ChangedDateTime

Changed date and time.

date

None.

DayScheduleProperties

List of day schedule ids for the schedule.

Collection of AdminDayScheduleDefaultProperty

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DayOfWeek": "sample string 2",
  "StartTime": "00:00",
  "EndTime": "00:00",
  "CreatedBy": "sample string 5",
  "CreatedDateTime": "2025-12-20T18:53:09.4340405+00:00",
  "ChangedBy": "sample string 7",
  "ChangedDateTime": "2025-12-20T18:53:09.4340405+00:00",
  "DayScheduleProperties": [
    {
      "Id": 1,
      "Key": "sample string 2",
      "Value": "sample string 3",
      "CreatedBy": "sample string 4",
      "CreatedDateTime": "2025-12-20T18:53:09.4340405+00:00",
      "ChangedBy": "sample string 6",
      "ChangedDateTime": "2025-12-20T18:53:09.4340405+00:00"
    },
    {
      "Id": 1,
      "Key": "sample string 2",
      "Value": "sample string 3",
      "CreatedBy": "sample string 4",
      "CreatedDateTime": "2025-12-20T18:53:09.4340405+00:00",
      "ChangedBy": "sample string 6",
      "ChangedDateTime": "2025-12-20T18:53:09.4340405+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<AdminGetDayScheduleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <ChangedBy>sample string 7</ChangedBy>
  <ChangedDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-20T18:53:09.4340405Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ChangedDateTime>
  <CreatedBy>sample string 5</CreatedBy>
  <CreatedDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-20T18:53:09.4340405Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDateTime>
  <DayOfWeek>sample string 2</DayOfWeek>
  <DayScheduleProperties>
    <AdminDayScheduleDefaultProperty>
      <ChangedBy>sample string 6</ChangedBy>
      <ChangedDateTime xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2025-12-20T18:53:09.4340405Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </ChangedDateTime>
      <CreatedBy>sample string 4</CreatedBy>
      <CreatedDateTime xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2025-12-20T18:53:09.4340405Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </CreatedDateTime>
      <Id>1</Id>
      <Key>sample string 2</Key>
      <Value>sample string 3</Value>
    </AdminDayScheduleDefaultProperty>
    <AdminDayScheduleDefaultProperty>
      <ChangedBy>sample string 6</ChangedBy>
      <ChangedDateTime xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2025-12-20T18:53:09.4340405Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </ChangedDateTime>
      <CreatedBy>sample string 4</CreatedBy>
      <CreatedDateTime xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2025-12-20T18:53:09.4340405Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>0</d4p1:OffsetMinutes>
      </CreatedDateTime>
      <Id>1</Id>
      <Key>sample string 2</Key>
      <Value>sample string 3</Value>
    </AdminDayScheduleDefaultProperty>
  </DayScheduleProperties>
  <EndTime>PT0.1234567S</EndTime>
  <Id>1</Id>
  <StartTime>PT0.1234567S</StartTime>
</AdminGetDayScheduleResponse>