GET v1/energy-production/list?monitoringPointId={monitoringPointId}&startDate={startDate}&endDate={endDate}
Get list of energy production
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| monitoringPointId |
Monitoring Point ID |
integer |
Required |
| startDate |
Start date |
date |
Required |
| endDate |
End date |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Return list of energy production
Collection of EnergyProductionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Year | integer |
None. |
|
| Month | integer |
None. |
|
| Day | integer |
None. |
|
| Total | decimal number |
None. |
|
| Estimative | decimal number |
None. |
|
| MonitoringPointId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Year": 2,
"Month": 1,
"Day": 1,
"Total": 1.0,
"Estimative": 1.0,
"MonitoringPointId": 3
},
{
"Id": 1,
"Year": 2,
"Month": 1,
"Day": 1,
"Total": 1.0,
"Estimative": 1.0,
"MonitoringPointId": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfEnergyProductionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models">
<EnergyProductionModel>
<Day>1</Day>
<Estimative>1</Estimative>
<Id>1</Id>
<MonitoringPointId>3</MonitoringPointId>
<Month>1</Month>
<Total>1</Total>
<Year>2</Year>
</EnergyProductionModel>
<EnergyProductionModel>
<Day>1</Day>
<Estimative>1</Estimative>
<Id>1</Id>
<MonitoringPointId>3</MonitoringPointId>
<Month>1</Month>
<Total>1</Total>
<Year>2</Year>
</EnergyProductionModel>
</ArrayOfEnergyProductionModel>