You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/webandtech/src/main/java/webapp8/webandtech/controller/api/users/UserRestControler.java
+196Lines changed: 196 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -337,4 +337,200 @@ public ResponseEntity<Object> uploadImageProfile( @Parameter(description="id of
337
337
}
338
338
}
339
339
340
+
@Operation(summary = "create a profile image theme user by id")
341
+
@ApiResponses(value = {
342
+
@ApiResponse(
343
+
responseCode = "201",
344
+
description = "Create the ImageProfile Theme",
345
+
content = {@Content(
346
+
mediaType = "application/json"
347
+
)}
348
+
),
349
+
@ApiResponse(
350
+
responseCode = "204",
351
+
description = "Image not found",
352
+
content = @Content
353
+
),
354
+
@ApiResponse(
355
+
responseCode = "404",
356
+
description = "User not found",
357
+
content = @Content
358
+
)
359
+
})
360
+
@PostMapping("/{id}/imageThemeProfile")
361
+
publicResponseEntity<Object> uploadImageThemeProfile( @Parameter(description="id of user to be searched") @PathVariableintid, @Parameter(description="user theme page picture") @RequestParamMultipartFileimage) throwsSQLException, IOException{
publicResponseEntity<List<Post>> getAllPost( @Parameter(description="id of user to be searched") @PathVariableintid, @Parameter(description="page") @RequestParam(required = false) Stringpage){
publicResponseEntity<List<Product>> getAllProducts( @Parameter(description="id of user to be searched") @PathVariableintid, @Parameter(description="page") @RequestParam(required = false) Stringpage){
0 commit comments