input: Write a function to create a basic CRUD API for the BlogPost model using 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.
  
  assert create_blog_crud_api()=={
    'routes': [
      {
        'path': '/post',
        'methods': ['POST'],
        'function': 'create_post'
      },
      {
        'path': '/posts',
        'methods': ['GET'],
        'function': 'get_posts'
      },
      {
        'path': '/post/<id>',
        'methods': ['GET'],
        'function': 'get_post'
      },
      {
        'path': '/post/<id>',
        'methods': ['PUT'],
        'function': 'edit_post'
      },
      {
        'path': '/post/<id>',
        'methods': ['DELETE'],
        'function': 'delete_post'
      }
    ]
  }
  assert create_blog_crud_api()==True
output: 
  def create_blog_crud_api():
      return {
          'routes': [
              {
                  'path': '/post',
                  'methods': ['POST'],
                  'function': 'create_post'
              },
              {
                  'path': '/posts',
                  'methods': ['GET'],
                  'function': 'get_posts'
              },
              {
                  'path': '/post/<id>',
                  'methods': ['GET'],
                  'function': 'get_post'
              },
              {
                  'path': '/post/<id>',
                  'methods': ['PUT'],
                  'function': 'edit_post'
              },
              {
                  'path': '/post/<id>',
                  'methods': ['DELETE'],
                  'function': 'delete_post'
              }
          ]
      }
  