hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX]: [ANCHOR: (BE) (JAVA)] [Blog Dislike] Change blog dislike endpoint method from PUT to POST #1165

Open olika-ashley opened 3 months ago

olika-ashley commented 3 months ago

Description

There is a need to update the HTTP method used for the "dislike" functionality. Currently, the endpoint is using the PUT method, which is incorrect for the blog. The correct method should be POST, as this action is meant to create a new record or modify.

Acceptance Criteria

Update Endpoint Method: Change the HTTP method for the dislike operation on the blog feature from PUT to POST.

Requirements

Ensure that the API documentation is updated to reflect this change. Include examples of the correct usage of the POST method for the dislike endpoint.

Expected Outcome

Update the HTTP method for the dislike endpoint. Review and update the unit tests to reflect this change.