expose server API (REST part) so that server can be fully replicated