Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
5800d1e8
Commit
5800d1e8
authored
4 years ago
by
Moritz Staudinger
Browse files
Options
Downloads
Patches
Plain Diff
fixed return types
parent
a68d2c09
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java
+2
-2
2 additions, 2 deletions
...vice/src/main/java/at/tuwien/endpoints/TableEndpoint.java
with
2 additions
and
2 deletions
fda-table-service/rest-service/src/main/java/at/tuwien/endpoints/TableEndpoint.java
+
2
−
2
View file @
5800d1e8
...
...
@@ -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
<
QueryResult
Dto
>
createViaCsv
(
@PathVariable
(
"id"
)
Long
databaseId
,
@RequestPart
(
"file"
)
MultipartFile
file
,
@RequestPart
TableCSVInformation
headers
)
{
public
ResponseEntity
<
Table
Dto
>
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
<
Table
Dto
>
showData
(
@PathVariable
(
"id"
)
Long
databaseId
,
@PathVariable
(
"tableId"
)
Long
tableId
)
throws
DatabaseNotFoundException
,
ImageNotSupportedException
,
TableNotFoundException
{
public
ResponseEntity
<
QueryResult
Dto
>
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
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment