we have migrated the api URL's from api to apigee how to change the URL's in the code

Aruna N 0 Reputation points
2025-02-16T13:02:04.5233333+00:00

we have migrated the api URL's from api to apigee how to change the URL's in the code

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,303 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Loknathsatyasaivarma Mahali 465 Reputation points Microsoft Vendor
    2025-02-17T05:24:02.7033333+00:00

    Hello @Aruna N,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    To update the API URLs in Azure API Management after migrating from Apigee:

    First update API URL in APIM, go to the APIs section in APIM and edit the API URL to reflect the new endpoint from Azure.

    Then update policies in inbound, outbound, or on-error policies, update the set-backend-service base URL with the new API URL.

    <inbound>
    
      <set-backend-service base-url="https://new-api.azure.com" />
    
    </inbound>
    

    After implementing the above steps use APIM's Test tool to verify the new API URL is working and Update client applications to use the new API URL.image (11) Also, for your reference please follow this DOCUMENT regarding the API policies and how to implement step by step.

    If you find the answer helpful, kindly click "Accept Answer" and upvote it. If you have any further questions or concerns, please feel free to reach out to us. We are happy to assist you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.