I have a REST api that takes data of nested json including multipart file
While testing the REST api through postman I am having problems.
I don't exactly know how to send the diverse types of data that I need - multipart/form-data file and nested json.
I have used REST in each case separately in other projects but I am unable to combine them in one request.
To use multipart/form-data I have to select form-data in the Body, then File from the dropdown in the key field, click on the select files button on the value field and select the file I want to upload.
To use nested json I have to select raw in the dropdown, and select json at the right of it and simply add the nested json in the body.
But how do I combine these two approaches?
I need multipart/form-data as well as nested json in the same request. How do I send these from postman? I am trying various approaches as you can see in the screenshots but I am not getting anywhere.
Thanks in advance
P.S. If it matters, I am using java (spring boot) for the backend.



