added documentation for REST api