def board_delete():
    """
    {"title": "Доска разработчика"}
    """
    user_name = request.authorization['username']
    data = request.args.get('title')
    status = Destributor(user_name, data=data).board_delete()
    return status
def card_delete():
    """
    {
    "title": "Развернуть PostgreSQL",
    "board": "Доска разработчика"
    }
    """
    user_name = request.authorization['username']
    data = dict(request.args)
    status = Destributor(user_name, data=data).card_delete()
    return status
def card_update():
    """
    {
        "title": "Развернуть PostgreSQL",
        "board": "Доска разработчика",
        "status": "Done"
    }
    """
    data = request.json
    user_name = request.authorization['username']
    status = Destributor(user_name, data=data).card_update()
    return status
def board_creat():
    """
    request: {
        "title":"Name_board",
        "columns":[names_cards]
    }
    response: {"ok": true}
    """
    data = request.json
    user_name = request.authorization['username']
    status = Destributor(user_name, data=data).board_creat()
    return status
def report():
    """ 
    {
        "board": "Доска разработчика",
        "column": "ToDo",
        "assignee": "Username"
    }
    """
    data = dict(request.args)
    user_name = request.authorization['username']
    status = Destributor(user_name, data=data).report()
    return status
def card_create():
    """
    {
        "title": "Развернуть PostgreSQL",
        "board": "Доска Разработчика",
        "status": "ToDo",
        "description": "Необходимо развернуть базу данных PostgreSQL",
        "assignee": "Username",
        "estimation": "8h"
    }
    """
    data = request.json
    user_name = request.authorization['username']
    status = Destributor(user_name, data=data).card_create()
    return status
def board_list():
    """ GET all board """
    user_name = request.authorization['username']
    status = Destributor(user_name).board_list()
    print(status)
    return status
def user_list():
    """GET all user."""
    user_name = request.authorization['username']
    status = Destributor(user_name).user_list()
    return status