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
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
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
Acceptance Criteria:
Testing: