I have a Restful JAX-RS Service which has a GET (/retrieve-pdfs
) API which should respond with multiple PDF within the JSON response payload.
Example :
{
"response": [{
"pdf_name": "name_1.pdf",
"File": "< pdf_data >"
},
{
"pdf_name": "name_2.pdf",
"File": "< pdf_data >"
}
]
}
- If this is not the valid approach, Can someone let me know the right way to respond multiple pdfs
- The consumer is a Java application so Content-Disposition is not a requirement