Add json endpoint to fetch user rating history.