I have sent the video to the appropriate team for approval. Probably on Monday it will be available. I will let you know once it is.
Original Message:
Sent: 08-30-2019 11:16 AM
From: Sri Krishna Meka
Subject: Refer Path Variable
Hi D.P,
Yes i am interested, please share if possible.
Thanks,
Sri
Original Message:
Sent: 08-30-2019 03:17 AM
From: Dimitrios Pantouveris
Subject: Refer Path Variable
Good Day,
Here is what I was thinking (although there might be different ways on achieving what you want).
1. with assertion of "evaluate regular expression" you check against the incoming url and you save the ID in a context variable named "order".
2. Once you have the ID in the context variable, with a "route via http" assertion you pass it in the url path: https://custom-order-dev.tst.com/orders/${order}/validateOrderReadyForDeposit
So the key here is the assertion "evaluate regular expression", to save the id in a context variable.
I have made a simple video on how to do it, would that be interesting for you?
Regards,
DP
------------------------------
Services Consultant
www.apiida.com
Original Message:
Sent: 08-29-2019 10:49 PM
From: Sri Krishna Meka
Subject: Refer Path Variable
HI D.P,
i have configured policy like /tst/*/ValidateOrderReadyForDeposit/*
https://layer7host:9443/tst/12345/ValidateOrderReadyForDeposit
now how can i pass this 12345 to the BE url https://custom-order-dev.tst.com/orders/${order}/validateOrderReadyForDeposit
can you pls suggest here.
Thanks,
Sri
Original Message:
Sent: 08-28-2019 12:21 PM
From: Dimitrios Pantouveris
Subject: Refer Path Variable
Hello Sri,
For simplicity lets name the urls:
L7 url = https://tst-apigateway/tst/ValidateOrderReadyForDeposit
BE url = https://hostname/orders/{id}/validateOrderReadyForDeposit
Assuming there is an ID either in the incoming call or generated in the policy you have then:
1. When the user hits the L7 url you should get the ID and save it in a context variable.
2. Once you have the ID and you want to pass it to the BE url (assuming you are using "Route via http assertion" or so) you can use ${name_of_variable_with_ID} so your BE url would look like:
orders/${id}/validateOrderReadyForDeposit
I hope that helps.
Regards,
D.P
------------------------------
Services Consultant
www.apiida.com
Original Message:
Sent: 08-28-2019 11:56 AM
From: Sri Krishna Meka
Subject: Refer Path Variable
Hi Dimitrios,
Thank you for your reply.
I have back end url https://hostname/orders/{id}/validateOrderReadyForDeposit
I have created a policy at layer7 by using above url and provided the layer7 url to end user. https://tst-apigateway/tst/ValidateOrderReadyForDeposit
how can i pass some value to the back end url - orders/{id}/validateOrderReadyForDeposit when i hit layer7 url.
Thanks,
Sri
Original Message:
Sent: 08-28-2019 02:35 AM
From: Dimitrios Pantouveris
Subject: Refer Path Variable
Good day,
I am still not sure what exactly you want to achieve here but to refer to variable you can use the ${id} (assuming the variable is already declared).
Could you please send a flow or elaborate more on the concept?
Regards,
Dimitrios Pantouveris
Services Consultant
www.apiida.com
------------------------------
Services Consultant
www.apiida.com
Original Message:
Sent: 08-27-2019 10:45 PM
From: Sri Krishna Meka
Subject: Refer Path Variable
Hi,
i am trying to create a policy which has back end called https://hostname/orders/{id}/validateOrderReadyForDeposit
is there a way we can refer path variable in policy?
i have configured a policy and provided a url like this
https://hostname/tst/agileshippingdummy - when i hit this url, how it substitute the value under {id}
Thanks,
Sri