blob: 000f4e8049922a3c6880265dad5b5ddb1b3a6ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from __future__ import unicode_literals
from rest_framework.views import APIView
from rest_framework import authentication
from rest_framework import renderers
from rest_framework.response import Response
class MockView(APIView):
authentication_classes = (authentication.SessionAuthentication,)
renderer_classes = (renderers.BrowsableAPIRenderer,)
def get(self, request):
return Response({'a': 1, 'b': 2, 'c': 3})
|