Rating API Complete

Ratings API completed with tests.