From f2815312d804b230b9d54bfdd6567d397f0f76e6 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 28 May 2025 20:24:27 -0700 Subject: [PATCH] Update APIView Endpoint to use API COntrollers (#6601) Co-authored-by: Chidozie Ononiwu --- eng/common/pipelines/templates/steps/detect-api-changes.yml | 2 +- eng/common/scripts/Helpers/ApiView-Helpers.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/detect-api-changes.yml b/eng/common/pipelines/templates/steps/detect-api-changes.yml index 573a23c19..b14f209cb 100644 --- a/eng/common/pipelines/templates/steps/detect-api-changes.yml +++ b/eng/common/pipelines/templates/steps/detect-api-changes.yml @@ -6,7 +6,7 @@ parameters: steps: - pwsh: | - $apiChangeDetectRequestUrl = "https://apiview.dev/PullRequest/DetectApiChanges" + $apiChangeDetectRequestUrl = "https://apiview.dev/api/PullRequests/CreateAPIRevisionIfAPIHasChanges" echo "##vso[task.setvariable variable=ApiChangeDetectRequestUrl]$apiChangeDetectRequestUrl" displayName: "Set API change detect request URL" condition: and(${{ parameters.Condition}}, eq(variables['ApiChangeDetectRequestUrl'], '')) diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index d5813d19f..b663883fb 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -241,7 +241,7 @@ function Set-ApiViewCommentForPR { # Helper function used to create API review requests for Spec generation SDKs pipelines function Create-API-Review { param ( - [string]$apiviewEndpoint = "https://apiview.dev/PullRequest/DetectAPIChanges", + [string]$apiviewEndpoint = "https://apiview.dev/api/PullRequests/CreateAPIRevisionIfAPIHasChanges", [string]$specGenSDKArtifactPath, [string]$apiviewArtifactName, [string]$buildId,