Context-Pfad von /data/ zu /rest-vz/ geändert

This commit is contained in:
Tobias Peper 2025-03-16 18:26:28 +01:00
parent 35f94aadfb
commit dfe189bff7

View File

@ -33,7 +33,7 @@ class VzRestController {
public VzRestController() {
}
@GetMapping("/data/sums")
@GetMapping("/rest-vz/sums")
Sums getData2(@RequestParam("timestampStart")final long timestampStart,
@RequestParam("timestampEnd")final long timestampEnd,
@RequestParam("houseId")final int houseId) {
@ -59,7 +59,7 @@ class VzRestController {
Math.round(aggregate.getProducedEnergy()));
}
@GetMapping("/data/prices")
@GetMapping("/rest-vz/prices")
List<EnergyPrice> getPrices(@RequestParam("timestampStart")final long timestampStart,
@RequestParam("timestampEnd")final long timestampEnd,
@RequestParam("houseId")final int houseId) {
@ -71,7 +71,7 @@ class VzRestController {
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,
@RequestParam(name = "timestampEnd", defaultValue = "-1")long timestampEnd,
@RequestParam(name = "duration", defaultValue = "")final String duration,