Context-Pfad von /data/ zu /rest-vz/ geändert
This commit is contained in:
parent
35f94aadfb
commit
dfe189bff7
@ -33,7 +33,7 @@ class VzRestController {
|
|||||||
public VzRestController() {
|
public VzRestController() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/data/sums")
|
@GetMapping("/rest-vz/sums")
|
||||||
Sums getData2(@RequestParam("timestampStart")final long timestampStart,
|
Sums getData2(@RequestParam("timestampStart")final long timestampStart,
|
||||||
@RequestParam("timestampEnd")final long timestampEnd,
|
@RequestParam("timestampEnd")final long timestampEnd,
|
||||||
@RequestParam("houseId")final int houseId) {
|
@RequestParam("houseId")final int houseId) {
|
||||||
@ -59,7 +59,7 @@ class VzRestController {
|
|||||||
Math.round(aggregate.getProducedEnergy()));
|
Math.round(aggregate.getProducedEnergy()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/data/prices")
|
@GetMapping("/rest-vz/prices")
|
||||||
List<EnergyPrice> getPrices(@RequestParam("timestampStart")final long timestampStart,
|
List<EnergyPrice> getPrices(@RequestParam("timestampStart")final long timestampStart,
|
||||||
@RequestParam("timestampEnd")final long timestampEnd,
|
@RequestParam("timestampEnd")final long timestampEnd,
|
||||||
@RequestParam("houseId")final int houseId) {
|
@RequestParam("houseId")final int houseId) {
|
||||||
@ -71,7 +71,7 @@ class VzRestController {
|
|||||||
return prices;
|
return prices;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value="/data/summary", produces = {"text/plain"})
|
@GetMapping(value="/rest-vz/summary", produces = {"text/plain"})
|
||||||
String getSummary2(@RequestParam(name = "timestampStart", defaultValue = "-1")long timestampStart,
|
String getSummary2(@RequestParam(name = "timestampStart", defaultValue = "-1")long timestampStart,
|
||||||
@RequestParam(name = "timestampEnd", defaultValue = "-1")long timestampEnd,
|
@RequestParam(name = "timestampEnd", defaultValue = "-1")long timestampEnd,
|
||||||
@RequestParam(name = "duration", defaultValue = "")final String duration,
|
@RequestParam(name = "duration", defaultValue = "")final String duration,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user