@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def node_infos(node_id):
exp = Experiment(session)<EOL>info_type = request_parameter(<EOL>parameter="<STR_LIT>", parameter_type="<STR_LIT>", default=models.Info<EOL>)<EOL>if type(info_type) == Response:<EOL><INDENT>return info_type<EOL><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>infos = node.infos(type=info_type)<EOL>exp.info_get_request(node=node, infos=infos)<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(infos=[i.__json__() for i in infos])<EOL>
Get all the infos of a node.

    The node id must be specified in the url.
    You can also pass info_type.