Test Spring Boot Multipart API End Point using Postman

44 Views Asked by At

I am trying to build an api end point to receive formdata along with Image file. I have a Spring Boot end point shown below:

    @PostMapping("/user/personUpload")
    public ResponseEntity<BaseResposeModel> personUploadWithImage(@RequestParam("person") PersonModel person, @RequestParam("personImage")   MultipartFile file) throws IOException{
.................
             
    }
~~
How do I test this from postman. I always get 404 resource not found error.

[!This is the screenshot of Postman for testing the end point.][1]][1]


  [1]: https://i.stack.imgur.com/DjgGH.png
0

There are 0 best solutions below