class Meta:
    queryset = User.objects.all()
resource_name = 'user'
allowed_methods = 'get', 'post', 'put', 'delete', 'patch'
authorization = authorization.Authorization()
Создание REST API для приложения Django