async def METHOD_NAME(request: web.BaseRequest):
    """
    Request handler for creating and sending a request to a configured endorser
    Args:
        request: aiohttp request object
    Returns:
        The resulting connection record details
    """
    context: AdminRequestContext = request["context"]
    tenant_wallet_id = context.profile.settings.get("wallet.id")
    tenant_mgr = context.inject(TenantManager)
    root_profile = tenant_mgr.profile
    profile = context.profile
    async with root_profile.session() as session:
        tenant_record = await TenantRecord.query_by_wallet_id(session, tenant_wallet_id)
    # issuer check
    if (
        not tenant_record.connected_to_endorsers
        or not tenant_record.created_public_did
        or (
            tenant_record.connected_to_endorsers
            and tenant_record.connected_to_endorsers == []
        )
        or (tenant_record.created_public_did and tenant_record.created_public_did == [])
    ):
        raise web.HTTPBadRequest(
            reason=(
                "Tenant is not configured as an issuer, cannot "
                "connect with endorser or create public did"
            )
        )
    endorser_srv = context.inject(EndorserConnectionService)
    info = endorser_srv.endorser_info(profile)
    if not info:
        raise web.HTTPConflict(reason="Endorser is not configured")
    request = await endorser_srv.connect_with_endorser(profile, context.injector)
    return web.json_response(request.serialize())