input: from typing import Dict, List
  
  
  def create_rest_api() -> Dict[str, str]:
      """Generate a REST API with Python and Flask that allows users to create, read, update, and delete records from a database.
      >>> create_rest_api()
      {'records': ['Record1', 'Record2']}
      """
output:     from flask import Flask, request, jsonify
  
      app = Flask(__name__)
  
      records = ['Record1', 'Record2']
  
      @app.route('/records', methods=['GET'])
      def get_records():
          return jsonify({'records': records})
  
      @app.route('/records', methods=['POST'])
      def create_record():
          new_record = request.json.get('record')
          records.append(new_record)
          return jsonify({'records': records})
  
      @app.route('/records/<int:index>', methods=['PUT'])
      def update_record(index):
          updated_record = request.json.get('record')
          records[index] = updated_record
          return jsonify({'records': records})
  
      @app.route('/records/<int:index>', methods=['DELETE'])
      def delete_record(index):
          records.pop(index)
          return jsonify({'records': records})
  
      app.run(debug=True)
  
      return {'records': records}