hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

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

Open Tearsmith0 opened 3 months ago

Tearsmith0 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:

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

Requirement

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.

Video link for more: https://www.loom.com/share/c02eda8905b74e94926fc1ecbdc0e119

chimeziriobioha commented 3 months ago

I'm working on this issue.