GET api/CalendarEvents?UtilityId={UtilityId}&Start={Start}&End={End}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UtilityId

integer

Required

Start

date

Required

End

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CalendarEvent
NameDescriptionTypeAdditional information
EventId

integer

None.

EventDateTime

date

None.

UtilityId

integer

None.

Title

string

Max length: 200

Description

string

Max length: 200

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "EventId": 1,
    "EventDateTime": "2020-02-15T21:17:30.2691218+00:00",
    "UtilityId": 3,
    "Title": "sample string 4",
    "Description": "sample string 5",
    "DateCreated": "2020-02-15T21:17:30.2691218+00:00",
    "DateUpdated": "2020-02-15T21:17:30.2691218+00:00",
    "CreatedBy": 8,
    "UpdatedBy": 9
  },
  {
    "EventId": 1,
    "EventDateTime": "2020-02-15T21:17:30.2691218+00:00",
    "UtilityId": 3,
    "Title": "sample string 4",
    "Description": "sample string 5",
    "DateCreated": "2020-02-15T21:17:30.2691218+00:00",
    "DateUpdated": "2020-02-15T21:17:30.2691218+00:00",
    "CreatedBy": 8,
    "UpdatedBy": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfCalendarEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CalendarEvent>
    <CreatedBy>8</CreatedBy>
    <DateCreated>2020-02-15T21:17:30.2691218+00:00</DateCreated>
    <DateUpdated>2020-02-15T21:17:30.2691218+00:00</DateUpdated>
    <Description>sample string 5</Description>
    <EventDateTime>2020-02-15T21:17:30.2691218+00:00</EventDateTime>
    <EventId>1</EventId>
    <Title>sample string 4</Title>
    <UpdatedBy>9</UpdatedBy>
    <UtilityId>3</UtilityId>
  </CalendarEvent>
  <CalendarEvent>
    <CreatedBy>8</CreatedBy>
    <DateCreated>2020-02-15T21:17:30.2691218+00:00</DateCreated>
    <DateUpdated>2020-02-15T21:17:30.2691218+00:00</DateUpdated>
    <Description>sample string 5</Description>
    <EventDateTime>2020-02-15T21:17:30.2691218+00:00</EventDateTime>
    <EventId>1</EventId>
    <Title>sample string 4</Title>
    <UpdatedBy>9</UpdatedBy>
    <UtilityId>3</UtilityId>
  </CalendarEvent>
</ArrayOfCalendarEvent>