C
C#2y ago
júlio

❔ C# Web Service - endpoint request redirection

Hello, I have multiple Web Services running. There is a service that is going to be discontinued but we need to keep it since older versions depend on the endpoints of that service. I want now to change the code in the deprecated service to redirect the request to the services where the code from this deprecated service was moved. I have 2 questons: Is there a better way to keep the old endpoints? For example is there a way for 2 endpoints to refer to the same thing? Because this would solve all the issues I'm having, and if not, how can I pass the request onto another service?
4 Replies
Mayor McCheese
There's a number of ways to handle this, a lot depends on where you're hosting the site Route attribute is stackable for instance Or if you're hosted in the cloud there is going to be cloud native options
júlio
júlioOP2y ago
So maybe this would be the best option, no? Just have differnet names for the same route
Mayor McCheese
You can try that You could version the api, but if you didn't start there
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?