Implementation of REST