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
Fanie Reynders edited this page Jan 18, 2016
·
2 revisions
Install via NuGet
Extend your ASP.NET Web API service by installing this package from NuGet:
Install-Package WebApiProxy
Note: This package requires the core libraries of ASP.NET Web API (version 5 or higher)
Register proxy endpoint
You need to explicitly register the proxy endpoint route. You can do this by using the RegisterProxyRoutes extension method that extends HttpConfiguration:
config.RegisterProxyRoutes();
Note: Make sure to include the WebApiProxy.Server namespace
This will register your service with an additional endpoint with the default address as /api/proxies. It is also possible to specify a custom address by passing the routeTemplate parameter:
config.RegisterProxyRoutes("$metadata");
Excluding controllers
You can exclude your controllers by simply decorating them with the ExcludeProxy attribute