[Important] Regarding Backend Review API #31
Labels
backend
implementation of backend
documentation
Improvements or additions to documentation
enhancement
New feature or request
I think some modification / clarification are needed:
clarification
range of
rating
is 0 to 5, inclusive.form of
date
isYYYY-MM-DD
, leading zero inclusive.modification
When getting review(s) I think the frontend doesn't have to know the id of
author
,restaurant
,menu
. Instead it should be"author": string, "restaurant": string, "menu": string
.api/review/
{"restaurant_name": string, "menu_name": string, "content": string, "rating": float}
, return json{"id": id, "author": id, "restaurant": id, "menu": id, "content": string, "rating": float, "date": string}
{"id": id, "author": id, "restaurant": id, "menu": id, "content": string, "image": url, "rating": float, "date": string}
api/review/:review_id/
{"id": id, "author": id, "restaurant": id, "menu": id, "content": string, "image": url, "rating": float, "date": string}
{"restaurant_name": string, "menu_name": string, "content": string, "rating": float}
return
{"id": id, "author": id, "restaurant": id, "menu": id, "content": string, "rating": float, "date": string}
api/review/:review_id/image/
{"id": id, "author": id, "restaurant": id, "menu": id, "image": url, "content": string, "rating": float, "date": string}
The text was updated successfully, but these errors were encountered: