def post_functional_requirement(
    document: FunctionalRequirement,
    document_manager: DocumentManager = Depends(get_document_manager)):
    """Create the document with a specific type and an optional name given in the payload"""
    logger.info(f"[PostDocument] Receiver POST request with data: {document}")
    document_manager.write_functional_requirement(document)
    return document
def put_functional_requirement(
    document: FunctionalRequirement,
    document_manager: DocumentManager = Depends(get_document_manager)):
    """Create the document with a specific type and an optional name given in the payload"""
    document_manager.write_functional_requirement(document)
    return document