from django.http import JsonResponse, HttpResponse
from django.shortcuts import render


def APISetPass(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse(a)


def APISET(request):
    return HttpResponse('ок')


def APIAll(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    b = {'name': 'Петя', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse([a, b], safe=False)

b50d4335cf6c994027302340f17a5362119a39c8
<mask token>


def APISET(request):
    return HttpResponse('ок')


<mask token>

<mask token>


def APISetPass(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse(a)


def APISET(request):
    return HttpResponse('ок')


<mask token>

<mask token>


def APISetPass(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse(a)


def APISET(request):
    return HttpResponse('ок')


def APIAll(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    b = {'name': 'Петя', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse([a, b], safe=False)

from django.http import JsonResponse, HttpResponse
from django.shortcuts import render


def APISetPass(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse(a)


def APISET(request):
    return HttpResponse('ок')


def APIAll(request):
    a = {'name': 'Вася', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    b = {'name': 'Петя', 'surname': 'Пупкин', 'password': 123456, 'tg': 1238860
        }
    return JsonResponse([a, b], safe=False)
