Add base REST server functional.