Exemplo n.º 1
0
def get_all_tasks(request):
    """Return an object with IDs of all task.

    Example: {"ids": [1, 2, 3]}
    """
    id_list = task_service.get_all_tasks()
    return JsonResponse({'ids' : id_list})
Exemplo n.º 2
0
def get_all_tasks(request):
    """Return an object with IDs of all task.

    Example: {"ids": [1, 2, 3]}
    """
    id_list = task_service.get_all_tasks()
    return JsonResponse({'ids': id_list})
Exemplo n.º 3
0
def get_all_tasks(request):
    """Return response with all task.
    """
    id_list = task_service.get_all_tasks()
    return JsonResponse({'ids': id_list})
Exemplo n.º 4
0
def get_all_tasks(request):
    """Return response with all task.
    """
    id_list = task_service.get_all_tasks()
    return JsonResponse({'ids' : id_list})