I have a ASp.Net WebApi and I add the DelegatingHandler for modify the requestUri.
I tried some examples without results, It is possible?
I Would like to encrypt (client) Decrypt (WebApi) part of the URL.
In the WebApi exists the controller with the route:
api/employee/getInfo/{name}/{lastname}/{date}
From my web client I do the GET to the URL: http://localhost/api/employee/getInfo/jhon/smith/010525
In the client interceptor I'm encrypt the last part of the URL, (base64 for the example) http://localhost/api/employee/getInfo/amhvbi9zbWl0aC8wMTA1MjU=
Then in the SendAsync from DelegatingHandler that I want is decrypt the last part to restore to the original URL to the webapi executes the proper webapi function.
thanks.