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: window.open("http://example.com/api/getFile/12");