hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FEAT][BE JAVA] [ANCHOR] Create Endpoint for Removing User Likes from Blog Posts #1155

Open giftexxy opened 3 months ago

giftexxy commented 3 months ago

Description

Implement an endpoint that allows users to remove their likes from a specific blog post.

Acceptance Criteria

Only authenticated users can access the endpoint. The endpoint verifies that the user has previously liked the blog post. The database is updated correctly to remove the user's like. The endpoint returns appropriate error messages for unauthorized access. The endpoint is well-documented and easy to use.

Expected Outcome

Users should be able to remove their likes from blog posts they have previously liked.