Implement rest interface.