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

Implementing the API's for Post Module. #100

Closed rak-shit closed 4 years ago

rak-shit commented 4 years ago

Name: Pull Request template About: Describe the PR. Title: 'Adds post create, delete and update API'


Problem

Github Issue Number: Fixes #94 & Fixes #101 Writing the backend logic to add a post, delete a pots and update a post

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 [ ] My Code change requires a change in documentation [x] I have updated the Readme accordingly [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 #100 into development will decrease coverage by 6.67%. The diff coverage is 18.26%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #100      +/-   ##
===============================================
- Coverage        55.07%   48.39%   -6.68%     
===============================================
  Files               16       15       -1     
  Lines              345      374      +29     
  Branches            41       44       +3     
===============================================
- Hits               190      181       -9     
- Misses             131      165      +34     
- Partials            24       28       +4     
Impacted Files Coverage Δ
app/models/Post.js 66.66% <ø> (ø)
app/controllers/post.js 10.28% <7.29%> (-9.08%) :arrow_down:
app/routes/post.js 83.87% <73.68%> (+9.79%) :arrow_up:
app/models/Comment.js
app.js 84.37% <0.00%> (+4.37%) :arrow_up:

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...54b36d6. Read the comment docs.

rak-shit commented 4 years ago

Create Post

Screenshot 2020-03-29 at 9 54 11 PM Screenshot 2020-03-29 at 9 54 24 PM

Handle Image

Screenshot 2020-03-31 at 1 59 51 AM

Update Post

Screenshot 2020-04-02 at 5 39 28 PM Screenshot 2020-04-02 at 5 39 36 PM

Delete Post

Screenshot 2020-04-02 at 5 40 20 PM

rak-shit commented 4 years ago

GET post by ID

Screenshot 2020-04-03 at 7 09 30 PM

GET all Posts

Screenshot 2020-04-03 at 11 54 50 PM

tanujvyas10 commented 4 years ago

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