#165412922 refactor track edit history feature, Like a comment, Like and Dislike an article and report an article feature #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Description of Task to be completed?
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
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
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:
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
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
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