Esempio n. 1
0
async def update_proposal(request: web.Request, id, body) -> web.Response:
    """update_proposal

    

    :param id: ID of the proposal
    :type id: str
    :param body: Details of the proposal for filling the duty (worker)
    :type body: dict | bytes

    """
    body = ProposalDetails.from_dict(body)
    return web.Response(status=200)
Esempio n. 2
0
async def create_proposal(request: web.Request, vacancy_id,
                          body) -> web.Response:
    """create_proposal

    Offer a worker for filling a duty

    :param vacancy_id: The ID of the vacancy
    :type vacancy_id: str
    :param body: Details of the proposal for filling the duty (worker)
    :type body: dict | bytes

    """
    body = ProposalDetails.from_dict(body)
    return web.Response(status=200)
def create_proposal(vacancy_id, proposal_details):  # noqa: E501
    """create_proposal

    Offer a worker for filling a duty # noqa: E501

    :param vacancy_id: The ID of the vacancy
    :type vacancy_id: str
    :param proposal_details: Details of the proposal for filling the vacancy (worker, costs, etc)
    :type proposal_details: dict | bytes

    :rtype: CreateProposalResponse
    """
    if connexion.request.is_json:
        proposal_details = ProposalDetails.from_dict(connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
def update_proposal(id, proposal_details):  # noqa: E501
    """update_proposal

     # noqa: E501

    :param id: ID of the proposal
    :type id: str
    :param proposal_details: Details of the proposal for filling the duty (worker)
    :type proposal_details: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        proposal_details = ProposalDetails.from_dict(
            connexion.request.get_json())  # noqa: E501
    return 'do some magic!'