From 4de6785c61980a15f44faf977b32d135003a5557 Mon Sep 17 00:00:00 2001 From: Moritz Staudinger <moritz.staudinger@tuwien.ac.at> Date: Tue, 25 May 2021 13:28:27 +0200 Subject: [PATCH] fixed return types --- .../src/main/java/at/tuwien/endpoints/TableEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java b/fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java index 6a27cf395f..1bf1c839bb 100644 --- a/fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java +++ b/fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java @@ -85,7 +85,7 @@ public class TableEndpoint { @ApiResponse(code = 405, message = "The container is not running."), @ApiResponse(code = 409, message = "The container image is not supported."), }) - public ResponseEntity<QueryResultDto> createViaCsv(@PathVariable("id") Long databaseId, @RequestPart("file") MultipartFile file, @RequestPart TableCSVInformation headers) { + public ResponseEntity<TableDto> createViaCsv(@PathVariable("id") Long databaseId, @RequestPart("file") MultipartFile file, @RequestPart TableCSVInformation headers) { final Table table = tableService.create(databaseId, file, headers); return ResponseEntity.status(HttpStatus.CREATED) .body(tableMapper.tableToTableDto(table)); @@ -164,7 +164,7 @@ public class TableEndpoint { @ApiResponse(code = 200, message = "All tables are listed."), @ApiResponse(code = 401, message = "Not authorized to list all tables."), }) - public ResponseEntity<TableDto> showData(@PathVariable("id") Long databaseId, @PathVariable("tableId") Long tableId) throws DatabaseNotFoundException, ImageNotSupportedException, TableNotFoundException { + public ResponseEntity<QueryResultDto> showData(@PathVariable("id") Long databaseId, @PathVariable("tableId") Long tableId) throws DatabaseNotFoundException, ImageNotSupportedException, TableNotFoundException { final QueryResult queryResult = tableService.showData(databaseId, tableId); return ResponseEntity.ok(queryResultMapper.queryResultToQueryResultDto(queryResult)); } -- GitLab