Link to the repository
[Only for premium members]
[Only for premium members]
Time for us to talk about rating of the apartments. After their stay, users are asked to rate the property.
By the end of this lesson, we will have this in Postman - see the last two fields returned:
While browsing Booking.com, I found out that only one main number of the user's ratings is actually calculated in the average of the property. Users are asked to rate separately many more features - cleanliness, friendly staff, etc - but we will not implement that. We will simplify it into this:
So, step by step...