GET api/Power/{id}

Gets PowerReadings for the specified address.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PowerReadingHour
NameDescriptionTypeAdditional information
AddressID

string

None.

StartTime

date

None.

KWH

decimal number

None.

Phase1KWh

decimal number

None.

Phase2KWh

decimal number

None.

Phase3KWh

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AddressID": "sample string 1",
    "StartTime": "2020-07-11T05:42:18.1716544+02:00",
    "KWH": 3.0,
    "Phase1KWh": 4.0,
    "Phase2KWh": 5.0,
    "Phase3KWh": 6.0
  },
  {
    "AddressID": "sample string 1",
    "StartTime": "2020-07-11T05:42:18.1716544+02:00",
    "KWH": 3.0,
    "Phase1KWh": 4.0,
    "Phase2KWh": 5.0,
    "Phase3KWh": 6.0
  }
]

text/html

Sample:
[{"AddressID":"sample string 1","StartTime":"2020-07-11T05:42:18.1716544+02:00","KWH":3.0,"Phase1KWh":4.0,"Phase2KWh":5.0,"Phase3KWh":6.0},{"AddressID":"sample string 1","StartTime":"2020-07-11T05:42:18.1716544+02:00","KWH":3.0,"Phase1KWh":4.0,"Phase2KWh":5.0,"Phase3KWh":6.0}]

application/xml, text/xml

Sample:
<ArrayOfPowerReadingHour xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel.Model">
  <PowerReadingHour>
    <AddressID>sample string 1</AddressID>
    <KWH>3</KWH>
    <Phase1KWh>4</Phase1KWh>
    <Phase2KWh>5</Phase2KWh>
    <Phase3KWh>6</Phase3KWh>
    <StartTime>2020-07-11T05:42:18.1716544+02:00</StartTime>
  </PowerReadingHour>
  <PowerReadingHour>
    <AddressID>sample string 1</AddressID>
    <KWH>3</KWH>
    <Phase1KWh>4</Phase1KWh>
    <Phase2KWh>5</Phase2KWh>
    <Phase3KWh>6</Phase3KWh>
    <StartTime>2020-07-11T05:42:18.1716544+02:00</StartTime>
  </PowerReadingHour>
</ArrayOfPowerReadingHour>