How to map the parameter to the operation

Lily 131 Reputation points
2021-07-29T12:28:27.36+00:00

Hi, I'm new to APIM. I have a API like below but have no idea how to map the parameter to the operation .
https://server.company.com/api/systemA/GetInvoiceData/AU
AU is a parameter here

It's not a Query parameter, so how can I configure it ?
119101-image.png

Need your help, much appreciated

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

Accepted answer
  1. MayankBargali-MSFT 70,906 Reputation points Moderator
    2021-08-02T06:50:52.197+00:00

    @Lily You can refer to add the operation for details and I have defined name parameter in my URL as below

    119772-image.png

    In your policy you can use context.Request context.Request.MatchedParameters.GetValueOrDefault("name") and according to your requirement you can use rewrite URL or as per your requirement.

    0 comments No comments

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.