How to return a Docx File?
Im just starting to use swagger and for the moment I like it very much 🙂 but I have a problem which I can't fix by myself.
Perhaps you can help me.
I saw that it is possible to return a PDF file and I was able to do that. My UseCase is that I like to return a docx File but I was not able.
The WebService returns a docx FIle but Word cannot open the file
Here is my Code I hope that you can help me
String filename = "Test.docx";
responseHeaders.setCacheControl("must-revalidate, post-check=0, pre-check=0");
.header(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + filename)
Thanks in advanced