Install and use djangorestframework

This commit is contained in:
2021-04-01 20:36:29 -05:00
parent 567226684d
commit da85e74860
11 changed files with 51 additions and 1 deletions

8
apiv1/views.py Normal file
View 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