I'm not sure whether this is a Micronaut or a AWS Gateway question. Any help would be fantastic.
I am trying to use the Micronaut framework to create a Lambda function that returns a pdf through the AWS API Gateway. Is this supported? What do I need to change to return binary content? I have tried changing the return type of the method to byte[] but it looks like the Content-Type is always application/json.
As a bit of context, I am hoping to use Groovy for writing the function, and Dynamic Reports to create the PDF using data from DynamoDB.
Many thanks in advance.