@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def node_vectors(node_id):
exp = Experiment(session)<EOL>direction = request_parameter(parameter="<STR_LIT>", default="<STR_LIT:all>")<EOL>failed = request_parameter(parameter="<STR_LIT>", parameter_type="<STR_LIT:bool>", default=False)<EOL>for x in [direction, failed]:<EOL><INDENT>if type(x) == Response:<EOL><INDENT>return x<EOL><DEDENT><DEDENT>node = models.Node.query.get(node_id)<EOL>if node is None:<EOL><INDENT>return error_response(error_type="<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>vectors = node.vectors(direction=direction, failed=failed)<EOL>exp.vector_get_request(node=node, vectors=vectors)<EOL>session.commit()<EOL><DEDENT>except Exception:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>",<EOL>status=<NUM_LIT>,<EOL>participant=node.participant,<EOL>)<EOL><DEDENT>return success_response(vectors=[v.__json__() for v in vectors])<EOL>
Get the vectors of a node.

    You must specify the node id in the url.
    You can pass direction (incoming/outgoing/all) and failed
    (True/False/all).