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 Power
NameDescriptionTypeAdditional information
AddressID

string

None.

StartTime

date

None.

KWH

decimal number

None.

Phase1KWh

decimal number

None.

Phase2KWh

decimal number

None.

Phase3KWh

decimal number

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AddressID": "sample string 1",
    "StartTime": "2024-11-21T10:32:44.7577201+01:00",
    "KWH": 3.0,
    "Phase1KWh": 4.0,
    "Phase2KWh": 5.0,
    "Phase3KWh": 6.0,
    "ID": 7
  },
  {
    "AddressID": "sample string 1",
    "StartTime": "2024-11-21T10:32:44.7577201+01:00",
    "KWH": 3.0,
    "Phase1KWh": 4.0,
    "Phase2KWh": 5.0,
    "Phase3KWh": 6.0,
    "ID": 7
  }
]

text/html

Sample:
[{"AddressID":"sample string 1","StartTime":"2024-11-21T10:32:44.7577201+01:00","KWH":3.0,"Phase1KWh":4.0,"Phase2KWh":5.0,"Phase3KWh":6.0,"ID":7},{"AddressID":"sample string 1","StartTime":"2024-11-21T10:32:44.7577201+01:00","KWH":3.0,"Phase1KWh":4.0,"Phase2KWh":5.0,"Phase3KWh":6.0,"ID":7}]

application/xml, text/xml

Sample:
<ArrayOfPower xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZPPModel">
  <Power>
    <ID>7</ID>
    <AddressID>sample string 1</AddressID>
    <KWH>3</KWH>
    <Phase1KWh>4</Phase1KWh>
    <Phase2KWh>5</Phase2KWh>
    <Phase3KWh>6</Phase3KWh>
    <StartTime>2024-11-21T10:32:44.7577201+01:00</StartTime>
  </Power>
  <Power>
    <ID>7</ID>
    <AddressID>sample string 1</AddressID>
    <KWH>3</KWH>
    <Phase1KWh>4</Phase1KWh>
    <Phase2KWh>5</Phase2KWh>
    <Phase3KWh>6</Phase3KWh>
    <StartTime>2024-11-21T10:32:44.7577201+01:00</StartTime>
  </Power>
</ArrayOfPower>