I have a request body like this -
{
"id": "",
"name": "",
"documents": [
{
"fileName": "",
"content": ""
}
]
}
Now, I want to loop through this documents array and then invoke another third party REST API. How to achieve this in an efficient way? The response should be 201 if all the documents has been processed or else 400 if any file of those has failed.