educative.io

Add Review contract for Yelp

add_review(place_ID, user_ID, review_description, rating)

The functional requirements include “The review can consist of images”. Should we add a way to submit images in the API contract?


Course: Grokking Modern System Design Interview for Engineers & Managers - AI-Powered Learning for Developers
Lesson: Yelp’s Design - Grokking Modern System Design Interview for Engineers & Managers

Hi Isaac,

You’re correct; we’ll add the “photo” parameter to the API contract to support image uploads. Since our functional requirements specify that reviews can consist of images, it makes perfect sense to incorporate a “photo” parameter into the API. Thank you for bringing this up, and we’ll make sure to include the “photo” parameter in our API specification.

Thank you.