19 lines
496 B
Python
19 lines
496 B
Python
|
from rest_framework.views import APIView
|
||
|
from rest_framework.response import Response
|
||
|
from rest_framework import authentication, permissions, status
|
||
|
from rest_framework.authentication import SessionAuthentication
|
||
|
from django.core import serializers
|
||
|
|
||
|
class BlockView(APIView):
|
||
|
permission_classes = (permissions.IsAuthenticated,)
|
||
|
authentication_classes = (SessionAuthentication,)
|
||
|
|
||
|
def post(self, request, pk):
|
||
|
pass
|
||
|
|
||
|
def get(self, request, pk):
|
||
|
pass
|
||
|
|
||
|
def delete(self, request, pk):
|
||
|
pass
|