SI-382 Station service Controller angepasst
diff --git a/gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/controller/StationController.java b/gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/controller/StationController.java
index abd6583..f8db4c2 100644
--- a/gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/controller/StationController.java
+++ b/gfsBackendService/src/main/java/org/eclipse/openk/gridfailureinformation/controller/StationController.java
@@ -21,9 +21,9 @@
import org.eclipse.openk.gridfailureinformation.service.StationService;
import org.eclipse.openk.gridfailureinformation.viewmodel.StationDto;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -36,17 +36,11 @@
@Autowired
private StationService stationService;
- //@Secured({"ROLE_GRID-FAILURE-ADMIN", "ROLE_GRID-FAILURE-CREATOR", "ROLE_GRID-FAILURE-QUALIFIER", "ROLE_GRID-FAILURE-PUBLISHER"})
- @ApiOperation(value = "Anzeige Stationen nach Stationsnummer und Stationsname")
+ @Secured({"ROLE_GRID-FAILURE-ADMIN", "ROLE_GRID-FAILURE-CREATOR", "ROLE_GRID-FAILURE-QUALIFIER", "ROLE_GRID-FAILURE-PUBLISHER"})
+ @ApiOperation(value = "Anzeige aller Stationen")
@ApiResponses(value = {@ApiResponse(code = 200, message = "Erfolgreich durchgeführt")})
@GetMapping
- public List<StationDto> findStations(
- @RequestParam ("stationid") String stationid,
- @RequestParam ("stationname") String stationname
- ) {
- return stationService.getStationsByIdAndName(stationid, stationname);
+ public List<StationDto> findStations() {
+ return stationService.getStations();
}
-
-
-
}