input: def generate_rest_api() -> None:
      """ Generates a Flask-based REST API that allows users to perform CRUD operations 
      (Create, Read, Update, Delete) on records stored in a SQLite database.
      Example:
      Running this script and accessing the API endpoints through a client like Postman 
      or curl should allow you to create, read, update, and delete records.
      """
output:     
      from flask import Flask, request, jsonify
      import sqlite3
  
      app = Flask(__name__)
      db_path = 'records.db'
  
      def get_db_connection():
          conn = sqlite3.connect(db_path)
          conn.row_factory = sqlite3.Row
          return conn
  
      @app.route('/records', methods=['POST'])
      def create_record():
          data = request.get_json()
          conn = get_db_connection()
          cursor = conn.cursor()
          cursor.execute('INSERT INTO records (name, value) VALUES (?, ?)',
                         (data['name'], data['value']))
          conn.commit()
          conn.close()
          return jsonify({'message': 'Record created successfully'}), 201
  
      @app.route('/records', methods=['GET'])
      def read_records():
          conn = get_db_connection()
          cursor = conn.cursor()
          cursor.execute('SELECT * FROM records')
          rows = cursor.fetchall()
          conn.close()
          records = [{'id': row['id'], 'name': row['name'], 'value': row['value']} for row in rows]
          return jsonify(records), 200
  
      @app.route('/records/<int:record_id>', methods=['PUT'])
      def update_record(record_id):
          data = request.get_json()
          conn = get_db_connection()
          cursor = conn.cursor()
          cursor.execute('UPDATE records SET name = ?, value = ? WHERE id = ?',
                         (data['name'], data['value'], record_id))
          conn.commit()
          conn.close()
          return jsonify({'message': 'Record updated successfully'}), 200
  
      @app.route('/records/<int:record_id>', methods=['DELETE'])
      def delete_record(record_id):
          conn = get_db_connection()
          cursor = conn.cursor()
          cursor.execute('DELETE FROM records WHERE id = ?', (record_id,))
          conn.commit()
          conn.close()
          return jsonify({'message': 'Record deleted successfully'}), 200
  
      if __name__ == '__main__':
          app.run(debug=True)
  