REST: abstract renderer to public API