From da822d3649a0d15702c988fe373b773b7d826181 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Fri, 23 May 2025 02:28:17 -0700 Subject: [PATCH] Update APIView Endpoint to use API COntrollers --- 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 573a23c197..b14f209cb1 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 d5813d19fd..b663883fb1 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,