Skip to content

Commit

Permalink
doc: openapi depositproof add binary format in content schema
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras committed Jun 7, 2024
1 parent b440495 commit df8cad7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>Modules for queen back-office</description>

<properties>
<revision>4.3.5</revision>
<revision>4.3.6</revision>
<changelist></changelist>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ public class DepositProofController {
@Parameter(name = "userId", hidden = true)
@GetMapping(value = "/survey-unit/{id}/deposit-proof")
@PreAuthorize(AuthorityPrivileges.HAS_USER_PRIVILEGES)
@ApiResponse(responseCode = "200", headers = {
@Header(name="Content-Disposition",
schema = @Schema(format = "binary", type="string", example = "form-data; name=\"attachment\"; filename=\"deposit.pdf\"") ) },
content = {@Content(mediaType = "application/pdf")
})
@ApiResponse(responseCode = "200",
headers = {
@Header(name="Content-Disposition",
schema = @Schema(type="string", example = "form-data; name=\"attachment\"; filename=\"deposit.pdf\"") )
},
content = {@Content(mediaType = "application/pdf", schema = @Schema(format = "binary", type="string"))}
)
public ResponseEntity<FileSystemResource> generateDepositProof(@IdValid @PathVariable(value = "id") String surveyUnitId,
@CurrentSecurityContext(expression = "authentication.name")
String userId) {
Expand Down

0 comments on commit df8cad7

Please sign in to comment.