https://github.com/apache/airflow/pull/27892 added Internal API as part of Webserver.

We need to introduce `airlfow internal-api` CLI command that starts Internal API as a independent component.
"""Initialize Internal API"""
    if not conf.getboolean("webserver", "run_internal_api", fallback=False):
        return
    base_path = "/internal_api/v1"
    spec_dir = path.join(ROOT_APP_DIR, "api_internal", "openapi")
    options = {"swagger_ui": conf.getboolean("webserver", "enable_swagger_ui", fallback=True)}
    internal_app = App(__name__, specification_dir=spec_dir, skip_error_handlers=True, options=options)
    internal_app.app = app
    api_bp = internal_app.add_api(
        specification="internal_api_v1.yaml",
        base_path=base_path,
        validate_responses=True,
        strict_validation=True,
    ).blueprint
    
    
    app.after_request_funcs.setdefault(api_bp.name, []).append(set_cors_headers_on_response)
    app.extensions["csrf"].exempt(api_bp)
def init_api_experimental(app):