input: def create_basic_crud_api(app: Flask, db: SQLAlchemy) -> None:
      """
      Create a basic CRUD API for the BlogPost model with Python/Flask. The API should include endpoints for creating a post, getting all posts, getting a single post, editing a post, and deleting a post.
  
      >>> create_basic_crud_api(app, db)
      # Assuming the Flask app is running, this function sets up the following endpoints:
      # POST /post - Create a new post
      # GET /posts - Get all posts
      # GET /post/<id> - Get a single post by ID
      # PUT /post/<id> - Edit a post by ID
      # DELETE /post/<id> - Delete a post by ID
      """
output:     from flask import request, jsonify
      from models import BlogPost
  
      @app.route('/post', methods=['POST'])
      def create_post():
          data = request.get_json()
          new_post = BlogPost(title=data['title'], content=data['content'])
          db.session.add(new_post)
          db.session.commit()
          return jsonify({'id': new_post.id, 'title': new_post.title, 'content': new_post.content}), 201
  
      @app.route('/posts', methods=['GET'])
      def get_all_posts():
          posts = BlogPost.query.all()
          return jsonify([{'id': post.id, 'title': post.title, 'content': post.content} for post in posts])
  
      @app.route('/post/<int:id>', methods=['GET'])
      def get_post(id):
          post = BlogPost.query.get_or_404(id)
          return jsonify({'id': post.id, 'title': post.title, 'content': post.content})
  
      @app.route('/post/<int:id>', methods=['PUT'])
      def edit_post(id):
          post = BlogPost.query.get_or_404(id)
          data = request.get_json()
          post.title = data.get('title', post.title)
          post.content = data.get('content', post.content)
          db.session.commit()
          return jsonify({'id': post.id, 'title': post.title, 'content': post.content})
  
      @app.route('/post/<int:id>', methods=['DELETE'])
      def delete_post(id):
          post = BlogPost.query.get_or_404(id)
          db.session.delete(post)
          db.session.commit()
          return jsonify({'result': True})