PiottiTech.ApiFrontEnd 1.0.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package PiottiTech.ApiFrontEnd --version 1.0.1
                    
NuGet\Install-Package PiottiTech.ApiFrontEnd -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PiottiTech.ApiFrontEnd" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PiottiTech.ApiFrontEnd" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="PiottiTech.ApiFrontEnd" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PiottiTech.ApiFrontEnd --version 1.0.1
                    
#r "nuget: PiottiTech.ApiFrontEnd, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PiottiTech.ApiFrontEnd@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PiottiTech.ApiFrontEnd&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=PiottiTech.ApiFrontEnd&version=1.0.1
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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

New