codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

Adds comment add, delete and update API's #104

Closed rak-shit closed 4 years ago

rak-shit commented 4 years ago

name: Pull Request template about: Describe the PR. title: 'Adds comment add, delete and update API's' labels: 'feature' assignees: @rak-shit


Problem

Github Issue Number: Fixes #102 I have added the backend logic and routes for the API's belonging to the Comment Module.

Type of Change

[ ] Bug fix [x] New Feature [ ] Development of UI/UX prototypes [ ] Small refactor [ ] Change in Documentation

Checklist

[x] My code follows the same style as the codebase [x] I made PR against development branch [x] I have run the test cases locally and it's passing. [x] I have squashed my commits

codecov[bot] commented 4 years ago

Codecov Report

Merging #104 into development will decrease coverage by 7.85%. The diff coverage is 19.67%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #104      +/-   ##
===============================================
- Coverage        55.07%   47.22%   -7.86%     
===============================================
  Files               16       17       +1     
  Lines              345      360      +15     
  Branches            41       43       +2     
===============================================
- Hits               190      170      -20     
- Misses             131      161      +30     
- Partials            24       29       +5
Impacted Files Coverage Δ
app/models/Comment.js 71.42% <ø> (ø) :arrow_up:
app.js 85.29% <100%> (+5.29%) :arrow_up:
app/routes/comment.js 100% <100%> (ø)
app/controllers/comment.js 2.24% <3.92%> (ø)
app/models/Post.js
app/controllers/post.js 25% <0%> (+5.64%) :arrow_up:
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 98ce23e...7a255e9. Read the comment docs.

rak-shit commented 4 years ago

Add Comment

Screenshot 2020-04-04 at 9 25 15 PM Screenshot 2020-04-04 at 9 25 25 PM

Delete Comment

Screenshot 2020-04-04 at 11 03 04 PM

Update Comment

Screenshot 2020-04-04 at 11 55 54 PM Screenshot 2020-04-04 at 11 55 48 PM

tanujvyas10 commented 4 years ago

@rak-shit you have not created the API for upvote and downvote feature for a comment Are you working on this or should I create a issue for this?

rak-shit commented 4 years ago

GET all comments for a particular post

Screenshot 2020-04-05 at 6 42 42 PM