You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot seem to find a way to set a URI like this for generic webhooks with a route that begins with something like /portalapi/v1/*. E.g. something like this:
config.Routes.MapHttpRoute(
name: "PortalApi",
routeTemplate: "portalapi/v1/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
The webhook receiver only seems to respond to posts from URIs in the form api/*:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
Am I missing something? Or is this a bug? Has anyone been able to change the beginning of the route and have it accepted by the webhook call?
The text was updated successfully, but these errors were encountered:
cale-sweeney
changed the title
Cannot set a URI like this for generic webhooks with a route different than /api/*
Cannot set a URI for generic webhooks with a route different than /api/*
Oct 25, 2021
I cannot seem to find a way to set a URI like this for generic webhooks with a route that begins with something like /portalapi/v1/*. E.g. something like this:
The webhook receiver only seems to respond to posts from URIs in the form api/*:
Am I missing something? Or is this a bug? Has anyone been able to change the beginning of the route and have it accepted by the webhook call?
Posted this question on stackoverflow as well:
https://stackoverflow.com/questions/69713805/cannot-set-a-uri-for-asp-net-generic-webhooks-with-a-route-different-than-xyz-co
The text was updated successfully, but these errors were encountered: