Issue
I am writing a Spring Boot SwaggerOpen API that will download/get a CSV File Template.
What should be the produces = MediaType
? I cannot find CSV below.
src="https://i.stack.imgur.com/snrvu.png" alt="enter image description here" />
Solution
You can enter the string directly, without using MediaType. For example: produces = "text/csv"
. text/plain
should work just fine though, since a csv file is just comma seperated text.
Answered By - Orfeas Magoulas
Answer Checked By - Robin (JavaFixing Admin)