A simple rest implementation