hngprojects / hng_boilerplate_python_fastapi_web

Apache License 2.0
154 stars 137 forks source link

[FIX]: Add Number Of BlogDislike To Data Returned When User Dislikes A Blog #933

Open chimeziriobioha opened 3 weeks ago

chimeziriobioha commented 3 weeks ago

Description

Currently, when a user dislikes a blog post, the API response does not include the updated total number of dislikes. To enhance user feedback and engagement, and save computing power and cost, the backend should be modified to return the total number of dislikes for a blog post whenever a new dislike is added. This update will allow the frontend to display the updated dislike count immediately after the action is performed, improving the overall user experience.

Expected Behavior

When a user dislikes a blog post, the API response will include the updated total number of dislikes for that post.

Screenshots

Current response schema

blog dislike return data

Acceptance Criteria:

Testing: