Implement rest services