Commit dbdb74bf authored by Rafal's avatar Rafal

repair

parent 3c3a17f1
......@@ -28,6 +28,12 @@ class APIViewSet(viewsets.ModelViewSet):
user_api.save()
return Response(status=rest_framework.status.HTTP_200_OK)
@detail_route()
def xd(self,request, pk=None):
api = get_object_or_404(APIViewSet.queryset, pk=pk)
api_data = api.data
return Response(status=rest_framework.status.HTTP_200_OK, data={'data': api_data})
@staticmethod
def test(request, id, function):
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment