DTI.ApiFrontEnd
1.0.3
dotnet add package DTI.ApiFrontEnd --version 1.0.3
NuGet\Install-Package DTI.ApiFrontEnd -Version 1.0.3
<PackageReference Include="DTI.ApiFrontEnd" Version="1.0.3" />
<PackageVersion Include="DTI.ApiFrontEnd" Version="1.0.3" />
<PackageReference Include="DTI.ApiFrontEnd" />
paket add DTI.ApiFrontEnd --version 1.0.3
#r "nuget: DTI.ApiFrontEnd, 1.0.3"
#:package DTI.ApiFrontEnd@1.0.3
#addin nuget:?package=DTI.ApiFrontEnd&version=1.0.3
#tool nuget:?package=DTI.ApiFrontEnd&version=1.0.3
Front end tool for automatically screening API requests and forwarding those on whitelist to middleware server. All POST requests and all responses must be JSON.
Sample C#: public class ProductConnectorController : ConnectorController { protected override string BaseUri ⇒ Config.AppSetting("ProductBaseUri"); protected override string Whitelist ⇒ Config.AppSetting("ProductWhitelist"); }
public class WebApiConfig { public static void Register(HttpConfiguration config) { //DEVNOTE: This is not standard Web API configuration and services config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "ProductConnectorAPI", routeTemplate: "api/Product/{realController}/{id}", defaults: new { controller = "ProductConnector", id = RouteParameter.Optional } ); } } Sample Web.Config: <appSettings> <add key="ProductBaseUri" value="http://my.middleware/api/ProductAPI"/> <add key="ProductWhitelist" value="ItemSelect,ItemAddToCart"/> </appSettings>
Requests to whitelisted APIs will be forwarded to the corresponding middleware API. For example: Requests to http://mydomain/api/Product/ItemSelect will be forwarded to http://my.middleware/api/ProductAPI/ItemSelect
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
- Microsoft.AspNet.WebApi (>= 5.2.7)
- System.Configuration.ConfigurationManager (>= 4.5.0)
- System.Security.Principal.Windows (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|