Send parameters to Azure APIM operation and then to backend api

SURYA LAKKOJU 21 Reputation points
2022-11-28T18:43:44.843+00:00

Hi i'm new to Azure API management, but i'm able to create an API in the APIM. now i want to pass a parameter to my apim which internally has to pass the value to my backend service.
example:
APIM url: https://devapi.microsoft.com/weatherforecast/{id}
backend url: https://test.azurewebsites.net

here in the backend i'm using a appservice and both the resources are in different tenant. can anyone please help me how to set the id value and pass it to the backend api url

I have created the template parameter as {id} 264795-image.png

and set the policy as 264883-image.png

please help me how to do this configuration, thanks in advance.

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

Accepted answer
  1. JananiRamesh-MSFT 27,911 Reputation points
    2022-11-29T14:03:34.927+00:00

    Hi @SURYA LAKKOJU Thanks for reaching out. please see the configurations below,
    265215-image.png
    265301-image.png
    265225-image.png

    request to your actual backend (app service in this case) is shown below
    265255-image.png

    reference: https://learn.microsoft.com/en-us/azure/api-management/import-and-publish
    Debug your API's using request tracing please refer: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector#trace-a-call

    do let me know incase of further queries, I would be glad to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.