-
Notifications
You must be signed in to change notification settings - Fork 1
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
#161254679 create, delete bookmark #43
base: develop
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 693
💛 - Coveralls |
357c836
to
23db497
Compare
from .models import Bookmark | ||
|
||
|
||
class BookmarkAPIView(APIView): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
7778756
to
1b8f5f1
Compare
renderer_classes = (BookmarkJSON,) | ||
queryset = Bookmark.objects.all() | ||
|
||
def post(self, request, slug): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
data["message"] = "bookmarked" | ||
return Response(data, status.HTTP_200_OK) | ||
|
||
def delete(self, request, slug): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
1b8f5f1
to
619debb
Compare
0f4a2d3
to
d01cecb
Compare
d01cecb
to
231dcb0
Compare
- user can create bookmark - user can delete bookmark [Delivers #161254679]
231dcb0
to
02d503e
Compare
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
Any background context you want to provide?
What are the relevant pivotal tracker stories?
#161254679
Screenshots (if appropriate)