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

Feature/332 like dislike backend #355

Merged
merged 24 commits into from
Oct 14, 2020
Merged

Conversation

vinovo
Copy link
Collaborator

@vinovo vinovo commented Oct 13, 2020

endpoints for like/dislike
post api/likes/ - create a new like or dislike for a story
get `api/likes/{story_id} - get the like/dislike count for a story and whether the story is like/dislike by the current user.

@yls00 yls00 self-requested a review October 13, 2020 17:43
Copy link
Collaborator

@yls00 yls00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a like and dislike count for each mystory of story.

@vinovo vinovo requested a review from yls00 October 14, 2020 04:43
@vinovo
Copy link
Collaborator Author

vinovo commented Oct 14, 2020

Change made

Copy link
Collaborator

@yls00 yls00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add dislike model

backend/likes/schemas.py Show resolved Hide resolved
@yls00 yls00 merged commit b06e782 into master Oct 14, 2020
@yls00 yls00 linked an issue Oct 14, 2020 that may be closed by this pull request
@yls00 yls00 deleted the feature/332-like-dislike-backend branch October 14, 2020 05:35
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.

Add thumps up and down buttons to the story markers
2 participants