2014-09-02 16:53:37 +04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2015-06-25 23:55:51 +03:00
|
|
|
from rest_framework import authentication, renderers
|
2014-09-02 16:53:37 +04:00
|
|
|
from rest_framework.response import Response
|
2015-06-25 23:55:51 +03:00
|
|
|
from rest_framework.views import APIView
|
2014-09-02 16:53:37 +04:00
|
|
|
|
|
|
|
|
|
|
|
class MockView(APIView):
|
|
|
|
authentication_classes = (authentication.SessionAuthentication,)
|
2016-06-01 17:31:00 +03:00
|
|
|
renderer_classes = (renderers.BrowsableAPIRenderer, renderers.JSONRenderer)
|
2014-09-02 16:53:37 +04:00
|
|
|
|
|
|
|
def get(self, request):
|
|
|
|
return Response({'a': 1, 'b': 2, 'c': 3})
|