Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Advanced reviews/rating APIs #988

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

haseebzaki-07
Copy link
Contributor

Pull Request

Title

Compelete Backend Implementation for review/rating models

Description

This apps add implemetations for the following fields

// Submit a review
router.post("/products/:productId/reviews");

// Get reviews for a product
router.get("/products/:productId/reviews", getReviews);

// Get rating distribution for a product
router.get("/products/:productId/rating-distribution", getRatingDistribution);

Modified user and rentProudcts schemas to match the prupose
Implemented Advanced APIs for real time ratings calculations and fetching.
Added express-validator for validations of reviews
Implemented rigorous error logging via winston logger.

Related Issues

fixes #937

Checklist

  • I have tested the changes locally
  • Documentation has been updated (if necessary)
  • Changes are backward-compatible

Screenshots (if applicable)

Screenshot 2024-11-10 143727

Screenshot 2024-11-10 143921

Copy link

vercel bot commented Nov 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agro-tech-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 9:23am

Copy link
Contributor

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@manikumarreddyu manikumarreddyu merged commit e949aa2 into manikumarreddyu:main Nov 10, 2024
3 checks passed
Copy link
Contributor

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Compelete Backend Implementation for review/rating models
2 participants