Added a base REST functionality