The reviews resource lets users read public reviews for any bakery and submit their own reviews for completed orders. Fetching bakery reviews is public; submitting, listing your own reviews, and checking eligibility require Firebase authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
GET /reviews?bakeryId= — fetchReviewsByBakery(bakeryId, page, pageSize)
Returns a paginated list of customer reviews for a specific bakery. No authentication required.
This endpoint is public. No
Authorization header is needed.Request parameters
ID of the bakery whose reviews you want to list.
Page number to retrieve. Defaults to
1.Number of reviews per page. Defaults to
20.Response fields
Returns a paginated array of review objects. Each object includes at minimum:Star rating given by the reviewer (1–5).
Optional written review left by the user.
Public information about the reviewer (e.g. display name).
Example
GET /reviews/me — fetchMyReviews()
Returns all reviews submitted by the authenticated user.
Response fields
Returns an array of review objects with the same shape asfetchReviewsByBakery(), plus orderId and bakeryId fields.
Example
GET /reviews/can-review/:orderId — canReviewOrder(orderId)
Checks whether the authenticated user is eligible to leave a review for a given order. Returns true only if the order status is COMPLETED and no review has been submitted for it yet.
Request parameters
ID of the order to check review eligibility for.
Response
Returns aboolean — true if the user can review this order, false if the order is not yet completed or has already been reviewed.
Example
POST /reviews — createReview({...})
Submits a review for a completed order. Each order can only be reviewed once.
Request parameters
ID of the order being reviewed. Must have status
COMPLETED and must not have been previously reviewed.Star rating from
1 (lowest) to 5 (highest).Optional written review. Defaults to an empty string if omitted.
Response fields
Returns the newly created review object, includingid, orderId, rating, comment, and createdAt.