I am trying to get rows from database and send the response in "CSV" format. This is the transform component right after database select
%dw 2.0
output application/csv
---
payload map {
name : $.NAME,
id: $.Num,
age: $.age
}
When I hit the API using postman/soapUI, I get response as json, not csv.
org.mule.service.http
logger toDEBUG
inside thelog4j2.xml
file so you can see what is the real API response on the logs. – Jorge Garcia