added documentation of REST api