def post(self, request):
    files = {key: (value.name, value.read()) for (key, value) in request.FILES.items()}
    post = request.POST
    json = None
    if (request.META.get('CONTENT_TYPE') == 'application/json'):
        json = request.data
    return Response({'method': request.method, 'query_params': request.query_params, 'POST': post, 'FILES': files, 'JSON': json})
def post(self, request):
    files = {key: (value.name, value.read()) for (key, value) in request.FILES.items()}
    post = request.POST
    json = None
    if (request.META.get('CONTENT_TYPE') == 'application/json'):
        json = request.data
    return Response({'method': request.method, 'query_params': request.query_params, 'POST': post, 'FILES': files, 'JSON': json})