@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def transformation_get(node_id):
exp = Experiment(session)<EOL>transformation_type = request_parameter(<EOL>parameter="<STR_LIT>",<EOL>parameter_type="<STR_LIT>",<EOL>default=models.Transformation,<EOL>)<EOL>if type(transformation_type) == Response:<EOL><INDENT>return transformation_type<EOL><DEDENT>node = models.Node.query.get(node_id)<EOL>if node is None:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>"<EOL>"<STR_LIT>".format(node_id)<EOL>)<EOL><DEDENT>transformations = node.transformations(type=transformation_type)<EOL>try:<EOL><INDENT>exp.transformation_get_request(node=node, transformations=transformations)<EOL>session.commit()<EOL><DEDENT>except Exception:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>", participant=node.participant<EOL>)<EOL><DEDENT>return success_response(transformations=[t.__json__() for t in transformations])<EOL>
Get all the transformations of a node.

    The node id must be specified in the url.

    You can also pass transformation_type.