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

[FIX]: Change Blog Dislike Endpoint Method From PUT to POST #930

Open
2 tasks
chimeziriobioha opened this issue Aug 22, 2024 · 0 comments
Open
2 tasks

[FIX]: Change Blog Dislike Endpoint Method From PUT to POST #930

chimeziriobioha opened this issue Aug 22, 2024 · 0 comments

Comments

@chimeziriobioha
Copy link
Contributor

Description

The endpoint api/v1/blogs/{blog_id}/dislike which enables users to create a BlogDislike object on blog posts is currently using a PUT method which is not meant for creation of new objects. This issue seeks to change it to POST which is appropriate, and update relevant tests.

Expected Behavior

The endpoint should utilize a POST method to ensure best practice.

Screenshots

blog dislike marked in docs

Acceptance Criteria:

  • Stick to the changes required to fix the particular bug mentioned in description.
  • Do not change other people's code without appropriate permission.

Testing:

  • Write test for all updates requiring one
  • Ensure all existing tests passes [without tampering], alongside the new ones added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant