Install and use djangorestframework
This commit is contained in:
8
apiv1/views.py
Normal file
8
apiv1/views.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from rest_framework import viewsets
|
||||
|
||||
from . import models
|
||||
from bookmarks.models import Bookmark
|
||||
|
||||
class BookmarkViewSet(viewsets.ModelViewSet):
|
||||
queryset = Bookmark.objects.all()
|
||||
serializer_class = models.BookmarkSerializer
|
||||
Reference in New Issue
Block a user