I am new to Azure API Management. I am constructing a policy that will change the initial request url.How can I extract the insurer_id from body and pass it to my backend.
{
"insurer_name": "Tony",
"insurer_id": "12345",
"comments": "This is test",
}
mybackend.com/api/relationship/approve/{insurer_id}
I know I have to extract the id as JObject, store it in the variable and do a rewrite-uri . But I am not sure, how I can go about implementing this in the Azure Policy. A small example would be helpful.
Thank you