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

#165412922 refactor track edit history feature, Like a comment, Like and Dislike an article and report an article feature #70

Merged
merged 3 commits into from
Jun 10, 2019

Conversation

MBenedicte
Copy link
Contributor

What does this PR do?

  • Refactor track edit history feature
  • Refactor following features :
  • Like a comment
  • Like and Dislike an article
  • Refactor a feature to report an article

Description of Task to be completed?

  • Refactor track edit history feature

Having the following endpoints:
Post /api/v1/auth/signup
Post /api/v1/auth/login
Post /api/v1/articles/:articleSlug/comments/
Get /api/v1/articles/:articleSlug/comments
Patch /api/v1/articles/:articleSlug/comments/:commentId
Get /api/v1/articles/:articleSlug/comments/:commentId/edits
Delete /api/v1/articles/:articleSlug/comments/:commentId/edits/:id

  • Refactor following features :
    • Like a comment
    • Like and Dislike an article
      Having the following endpoints:

Post /api/v1/auth/signup
Post /api/v1/auth/login
Get /api/v1/articles
Post /api/v1/articles/:articleSlug/:status
Get /api/v1/articles/:articleSlug/comments
Post /api/v1/articles/:articleSlug/comments/:commentId/like

  • Refactor a feature to report an article
    Having the following endpoints:

Post /api/v1/auth/signup
Post /api/v1/auth/login
Get /api/v1/article/report
Post /api/v1/article/:articleSlug/report
Get /api/v1/article/:articleSlug/report/:reportId
Delete /api/v1/article/:articleSlug/report/:reportId

How should this be manually tested?

After cloning the repo, run npm run dev command, the following endpoints in postman:

  • Track edit history feature

Having the following endpoints:
Post /api/v1/auth/signup
Post /api/v1/auth/login
Post /api/v1/articles/:articleSlug/comments/
Get /api/v1/articles/:articleSlug/comments
Patch /api/v1/articles/:articleSlug/comments/:commentId
Get /api/v1/articles/:articleSlug/comments/:commentId/edits
Delete /api/v1/articles/:articleSlug/comments/:commentId/edits/:id

  • Like a comment& Like and Dislike an article
    Having the following endpoints:

Post /api/v1/auth/signup
Post /api/v1/auth/login
Get /api/v1/articles
Post /api/v1/articles/:articleSlug/:status
Get /api/v1/articles/:articleSlug/comments
Post /api/v1/articles/:articleSlug/comments/:commentId/like

  • Report an article
    Having the following endpoints:

Post /api/v1/auth/signup
Post /api/v1/auth/login
Get /api/v1/article/report
Post /api/v1/article/:articleSlug/report
Get /api/v1/article/:articleSlug/report/:reportId
Delete /api/v1/article/:articleSlug/report/:reportId

Any background context you want to provide?

Implemented using node.js, and express

What are the relevant pivotal tracker stories?

16541294, 165412935, 165412936, 165412924

@MBenedicte MBenedicte force-pushed the ft-comment-endpoints-165412922 branch 4 times, most recently from 38a8fb1 to 5579b91 Compare June 7, 2019 18:08
@MBenedicte MBenedicte force-pushed the ft-comment-endpoints-165412922 branch from 5579b91 to 1284f30 Compare June 7, 2019 18:38
@MBenedicte MBenedicte force-pushed the ft-comment-endpoints-165412922 branch from 2033023 to d218c8f Compare June 7, 2019 19:07
@e-liyai e-liyai merged commit 1a3a099 into develop Jun 10, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants