Implemented REST layer