I have gone through the code and webparts but couldn't figure out how rating works. All I know is the rating control provided.
I want to show rating history through an API. I also need to allow users to rate using API.
I can get rating value of a document with the query:
select DocumentRatings, DocumentRatingValue from CMS_Document WHERE [DocumentNodeID] = 123
But how to see rating history?
How rating is calculated internally?
Which are the other tables involved?