Open ocharles opened 12 years ago
We need to make ratings accessible. I think the best way to do this is:
Add a rating property to all core entities that have ratings. This property is an object:
rating
"rating": { "average": rating?, "count": nonnegative-integer }
Where rating ∈ ℝ and rating ∈ [0, 100].
/rating
PUT
DELETE
We could expand on the rating property to also have some other interesting statistics, such as minimum, maximum, median, etc.
We need to make ratings accessible. I think the best way to do this is:
Add a
rating
property to all core entities that have ratings. This property is an object:Where
rating
∈ ℝ andrating
∈ [0, 100]./rating
end point to all core entities that have ratings. This end point can respond to:PUT
- allow a user to change rating.DELETE
- allow a user to delete their rating entirely.We could expand on the
rating
property to also have some other interesting statistics, such as minimum, maximum, median, etc.