@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def get_network(network_id):
try:<EOL><INDENT>net = models.Network.query.filter_by(id=network_id).one()<EOL><DEDENT>except NoResultFound:<EOL><INDENT>return error_response(error_type="<STR_LIT>", status=<NUM_LIT>)<EOL><DEDENT>return success_response(network=net.__json__())<EOL>
Get the network with the given id.