GET ops/housing/{houseId}/meterReadings?start={start}&end={end}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
houseId

integer

Required

start

date

None.

end

date

None.

Body Parameters

None.

Response Information

Resource Description

MeterReadingReportGET
NameDescriptionTypeAdditional information
MeterReadings

Collection of MeterReadingGET

None.

Usage

Collection of MeterReadingUsageGET

None.

Response Formats

application/json, text/json

Sample:
{
  "meterReadings": [
    {
      "id": 1,
      "electricityReading": 1,
      "waterReading": 1,
      "readingDate": "2024-02-21T06:37:01.1646574+02:00",
      "houseId": 3,
      "modified": "2024-02-21T06:37:01.1646574+02:00",
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "modifiedBy": {
        "firstName": "sample string 1",
        "id": 2,
        "lastName": "sample string 3",
        "uid": "sample string 4",
        "username": "sample string 5"
      }
    },
    {
      "id": 1,
      "electricityReading": 1,
      "waterReading": 1,
      "readingDate": "2024-02-21T06:37:01.1646574+02:00",
      "houseId": 3,
      "modified": "2024-02-21T06:37:01.1646574+02:00",
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "modifiedBy": {
        "firstName": "sample string 1",
        "id": 2,
        "lastName": "sample string 3",
        "uid": "sample string 4",
        "username": "sample string 5"
      }
    }
  ],
  "usage": [
    {
      "dateRange": null,
      "waterUsage": 1,
      "electricityUsage": 1
    },
    {
      "dateRange": null,
      "waterUsage": 1,
      "electricityUsage": 1
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myREST.Models.DateRange' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myREST.Models.DateRange' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.