POST ops/housing/meterReadings
Request Information
URI Parameters
None.
Body Parameters
MeterReadingPOSTName | Description | Type | Additional information |
---|---|---|---|
ElectricityReading | integer |
None. |
|
WaterReading | integer |
None. |
|
ReadingDate | date |
None. |
|
HouseId | integer |
None. |
|
UserUid | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "electricityReading": 1, "waterReading": 1, "readingDate": "2024-09-08T06:49:15.5585354+02:00", "houseId": 2, "userUid": "sample string 3" }
application/xml, text/xml
Sample:
<MeterReadingPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing"> <ElectricityReading>1</ElectricityReading> <HouseId>2</HouseId> <ReadingDate>2024-09-08T06:49:15.5585354+02:00</ReadingDate> <UserUid>sample string 3</UserUid> <WaterReading>1</WaterReading> </MeterReadingPOST>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MeterReadingGETName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
ElectricityReading | integer |
None. |
|
WaterReading | integer |
None. |
|
ReadingDate | date |
None. |
|
HouseId | integer |
None. |
|
Modified | date |
None. |
|
Status | Status |
None. |
|
ModifiedBy | UserBasicGET |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "electricityReading": 1, "waterReading": 1, "readingDate": "2024-09-08T06:49:15.5585354+02:00", "houseId": 3, "modified": "2024-09-08T06:49:15.5585354+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" } }
application/xml, text/xml
Sample:
<MeterReadingGET xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing"> <ElectricityReading>1</ElectricityReading> <HouseId>3</HouseId> <Id>1</Id> <Modified>2024-09-08T06:49:15.5585354+02:00</Modified> <ModifiedBy xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin"> <d2p1:FirstName>sample string 1</d2p1:FirstName> <d2p1:Id>2</d2p1:Id> <d2p1:LastName>sample string 3</d2p1:LastName> <d2p1:Uid>sample string 4</d2p1:Uid> <d2p1:Username>sample string 5</d2p1:Username> </ModifiedBy> <ReadingDate>2024-09-08T06:49:15.5585354+02:00</ReadingDate> <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin"> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </Status> <WaterReading>1</WaterReading> </MeterReadingGET>