mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +03:00
16 lines
439 B
Python
16 lines
439 B
Python
|
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})
|