Skip to content

Commit

Permalink
Add missing doc for import params to swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Mar 20, 2024
1 parent 1315eba commit 64b711d
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ public ImportController( TrackingRepository trackingRepository, PidService pidSe
@ApiResponse(code = 415, message = "The request is not a multipart request.", response = ResponseMessage.class)
})
@ApiImplicitParams(value = {
@ApiImplicitParam(dataType = "__file", name = "file", value = "The file to be imported.", required = true, paramType = "form"),
@ApiImplicitParam(dataType = "string", name = "prev", value = "The PID of the previous version", paramType = "form")
@ApiImplicitParam(dataType = "__file", name = "file", value = "The file to be imported", required = true, paramType = "form"),
@ApiImplicitParam(dataType = "string", name = "prev", value = "The PID of the previous version", paramType = "form"),
@ApiImplicitParam(dataType = "string", name = "fulltextfilegrp", value = "Name of filegroup containing the fulltexts", paramType = "form"),
@ApiImplicitParam(dataType = "string", name = "imagefilegrp", value = "Name of filegroup containing the images", paramType = "form"),
@ApiImplicitParam(dataType = "string", name = "fulltextftype", value = "Type of fulltexts, e.g. PAGEXML_1", paramType = "form"),
@ApiImplicitParam(dataType = "boolean", name = "isgt", value = "Set to true to flag the data as Ground Truth, used for search filtering", paramType = "form"),
})
@ResponseStatus(value = HttpStatus.ACCEPTED)
@PostMapping(value = "/bag", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
Expand Down Expand Up @@ -155,4 +159,4 @@ public ResponseEntity<?> handleIllegalArgumentException(IllegalArgumentException
return ResponseEntity.badRequest()
.body(new ResponseMessage(status, message, uri));
}
}
}

0 comments on commit 64b711d

Please sign in to comment.