Hi
I'm trying to implement a service returning a PDF file as binary
[ServiceContract]
[Route('ecopdf')]
IEcoPDFService = interface(IInvokable)
['{1D39A2FF-2C86-4878-9C94-BCC8C41F10CA}']
[HttpGet, Route('render')]
function Render(RequestID : string='') : TBytes;
Independently the function works fine enabling to save a pdf file
But here I'm trying to build an answer from xdata as REST API but in swaggerUI the response is
{
"value": "string"
}
with content type = application/json
How to return binary directly as application/pdf ?
Thanks for help
Sylvain