def get_function_input(function):
    """
    Return a  with the single input that is documented using
    api.decoratos.input
    """
    parameters = []
    if hasattr(function, 'doc_input'):
        (description, return_type, required) = function.doc_input
        parameters.append({
            'name': 'body',
            'description': description,
            'type': return_type,
            'paramType': 'body',
            'required': bool(required)
        })
    return parameters