Hello!
My goal is to serve files using REST classes only (no filesystem should be used), and I am a halfway far from it.
What I am succeeded in, is serving character files (html/css/javascript/etc) using the next approach:
InterSystems Caché is a multi-model DBMS and application server. See more details here.