Skip to content

Commit

Permalink
Fixed UserController#post
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-skinderviken committed Dec 8, 2024
1 parent 0137b77 commit b5e765e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public UserController(UserService userService) {

@Operation(
summary = "Create a new user",
description = "Creates a new user if the username does not already exist in the database. An optional profile image can be provided.",
description = "Creates a new user if the username does not already exist in the database. " +
"An optional profile image can be provided.",
responses = {
@ApiResponse(
responseCode = "201",
Expand All @@ -54,7 +55,7 @@ public UserController(UserService userService) {
consumes = MediaType.MULTIPART_FORM_DATA_VALUE,
produces = MediaType.TEXT_PLAIN_VALUE)
public ResponseEntity<String> createUser(
@Parameter(description = "User data", required = true)
@io.swagger.v3.oas.annotations.parameters.RequestBody(description = "User data", required = true)
@Validated CreateUserVm createUserVm,

@Parameter(description = "Profile image")
Expand Down

0 comments on commit b5e765e

Please sign in to comment.