Advertisement
Guest User

Untitled

a guest
Dec 13th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1.     @PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
  2.     @Operation(summary = "Create data collection",
  3.             security = @SecurityRequirement(name = OpenApiConfig.BEARER_AUTH_SECURITY_SCHEME_NAME))
  4.     ResponseEntity<DataCollectionDTO> create(@Parameter(description = "The datacollections name.", required = true, style = ParameterStyle.FORM) @RequestPart String name,
  5.                                              @Parameter(description = "The datacollections type, ex. JSON..", required = true, style = ParameterStyle.FORM, schema = @Schema(implementation = DataCollectionType.class)) @RequestPart("type") DataCollectionType dataCollectionType,
  6.                                              @Parameter(description = "Data collections file", required = true, style = ParameterStyle.FORM) @RequestPart("attachment") MultipartFile multipartFile, Principal principal);
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement