File download endpoint

Hey all,

I need an endpoint that will return file content in stream, but I need to have that like a simple REST GET API.
For example: /api/getFile/{id} will respond content of a pdf file which I can open in the browser:"");


Hilla endpoint do not handle file downloads. You can create a spring RestController to handle it

Hi @secure-leopard thank you for your answer, I have created but can’t understand how to access to that API.

You would use a normal link tag <a href="" download>

Thanks, it works :+1: