input: Write a function to create a REST API using Flask and SQLAlchemy that allows users to perform CRUD operations on a database. The function should define a Record model with an `id` and `name` field, and implement endpoints to create, read, update, and delete records. If the API is successfully created, return True; otherwise, return False.
  assert create_rest_api_with_crud_operations()==True
  assert create_rest_api_with_crud_operations()==True
  assert create_rest_api_with_crud_operations()==False
  assert create_rest_api_with_crud_operations()==False
  assert create_rest_api_with_crud_operations()==True
output: from flask import Flask, request, jsonify
  from flask_sqlalchemy import SQLAlchemy
  
  def create_rest_api_with_crud_operations():
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///records.db'
      db = SQLAlchemy(app)
  
      class Record(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          name = db.Column(db.String(80), nullable=False)
  
      db.create_all()
  
      @app.route('/records', methods=['POST'])
      def create_record():
          data = request.get_json()
          new_record = Record(name=data['name'])
          db.session.add(new_record)
          db.session.commit()
          return jsonify({'id': new_record.id, 'name': new_record.name}), 201
  
      @app.route('/records/<int:id>', methods=['GET'])
      def read_record(id):
          record = Record.query.get_or_404(id)
          return jsonify({'id': record.id, 'name': record.name})
  
      @app.route('/records/<int:id>', methods=['PUT'])
      def update_record(id):
          record = Record.query.get_or_404(id)
          data = request.get_json()
          record.name = data['name']
          db.session.commit()
          return jsonify({'id': record.id, 'name': record.name})
  
      @app.route('/records/<int:id>', methods=['DELETE'])
      def delete_record(id):
          record = Record.query.get_or_404(id)
          db.session.delete(record)
          db.session.commit()
          return '', 204
  
      try:
          app.run(debug=True)
          return True
      except:
          return False