Skip to content

Commit

Permalink
Remove query controller, added Swagger metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
JPugetGil committed Oct 15, 2024
1 parent 99590e6 commit 20a7213
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ public QuadImportController(QuadImportService quadImportService) {
@ApiResponse(responseCode = "200", description = "The quads were added to a new version"),
@ApiResponse(responseCode = "400", description = "Invalid content")}
)
@PostMapping(value = {"/version"})
@PostMapping(value = {"/version"}, consumes = "multipart/form-data")
ResponseEntity<Integer> importModel(
@Parameter(description = "The file containing all the triple/quads to import as valid in a new version", name = "file")
@Parameter(
description = "The file containing all the triple/quads to import as valid in a new version",
name = "file",
required = true,
content = @Content(mediaType = "multipart/form-data", schema = @Schema(type = "string", format = "binary"))
)
@RequestParam("file") MultipartFile file
) {
try {
Expand All @@ -55,9 +60,13 @@ ResponseEntity<Integer> importModel(
@ApiResponse(responseCode = "200", description = "The triple were added to a new metadata"),
@ApiResponse(responseCode = "400", description = "Invalid content")}
)
@PostMapping(value = {"/metadata"})
@PostMapping(value = {"/metadata"}, consumes = "multipart/form-data")
ResponseEntity<Void> importMetadata(
@Parameter(description = "The file containing all the triple to import as valid in a new metadata", name = "file")
@Parameter(description = "The file containing all the triple to import as valid in a new metadata",
name = "file",
required = true,
content = @Content(mediaType = "multipart/form-data", schema = @Schema(type = "string", format = "binary"))
)
@RequestParam("file") MultipartFile file
) {
try {
Expand Down

This file was deleted.

0 comments on commit 20a7213

Please sign in to comment.