Added documentation for REST api