Tag: msword
-
How to download a Microsoft Word document from a Spring Boot REST API?
Let’s say you want to create a REST API which returns a Microsoft Word Document. When a client calls that API the document gets automatically downloaded to their system. How do you do it? Here is the algorithm: STEP1: Create a REST API which returns a byte array STEP2: Configure the return type of the…