From dfc1e501d91afe9b48ee8ddc619dfe731cd50166 Mon Sep 17 00:00:00 2001 From: Lubos Racansky Date: Wed, 13 Dec 2023 10:43:35 +0100 Subject: [PATCH] Specify RequestPart name in multipart controller --- .../rest/client/base/controller/PublicTestRestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest-client-base/src/test/java/com/wultra/core/rest/client/base/controller/PublicTestRestController.java b/rest-client-base/src/test/java/com/wultra/core/rest/client/base/controller/PublicTestRestController.java index b2c8ad4..958e232 100644 --- a/rest-client-base/src/test/java/com/wultra/core/rest/client/base/controller/PublicTestRestController.java +++ b/rest-client-base/src/test/java/com/wultra/core/rest/client/base/controller/PublicTestRestController.java @@ -80,7 +80,7 @@ public ObjectResponse testPostWithObjectRequestAndResponse(@Reques } @PostMapping(value = "/multipart-request-response", consumes = { MediaType.MULTIPART_FORM_DATA_VALUE }) - public ObjectResponse testPostWithMultipartRequestAndResponse(@RequestPart TestRequest request) { + public ObjectResponse testPostWithMultipartRequestAndResponse(@RequestPart("request") TestRequest request) { TestResponse testResponse = new TestResponse(request.getRequest()); return new ObjectResponse<>(testResponse); }