示例#1
0
def put_stack_application_template(
    sat: StackApplicationTemplate,
    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_stack_application_template(sat)

    return sat
示例#2
0
def post_stack_application_template(
    sat: StackApplicationTemplate,
    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: {sat}")

    document_manager.write_stack_application_template(sat)

    return sat