├── .gitignore ├── LICENSE ├── README.md ├── final ├── Authentication │ ├── Authentication.csproj │ ├── Controllers │ │ ├── UserController.cs │ │ └── ValuesController.cs │ ├── Models │ │ └── User.cs │ ├── Program.cs │ ├── Startup.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── index.html ├── Catalog │ ├── Catalog.csproj │ ├── Controllers │ │ ├── ProductController.cs │ │ └── ValuesController.cs │ ├── Models │ │ └── Product.cs │ ├── Program.cs │ ├── Startup.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ │ └── index.html ├── Gateway │ ├── Controllers │ │ └── ValuesController.cs │ ├── Gateway.csproj │ ├── Program.cs │ ├── Startup.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── ocelot.json ├── GatewayDemo.sln └── Ledger │ ├── Controllers │ ├── TransactionController.cs │ └── ValuesController.cs │ ├── Ledger.csproj │ ├── Models │ └── Transaction.cs │ ├── Program.cs │ ├── Startup.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── wwwroot │ └── index.html ├── scripts ├── 001_initialize-projects.sh ├── 002_initialize-solution.sh ├── 003_install-ocelot.sh ├── 004_write-authentication-code.sh ├── 005_write-catalog-code.sh ├── 006_write-ledger-code.sh ├── 007_write-gateway-code.sh └── 100_build-api-gateway.sh └── test ├── 001_initialize-projects.sh ├── 002_initialize-solution.sh ├── 003_install-ocelot.sh ├── 004_write-authentication-code.sh ├── 005_write-catalog-code.sh ├── 006_write-ledger-code.sh ├── 007_write-gateway-code.sh ├── 100_build-api-gateway.sh ├── Authentication ├── Authentication.csproj ├── Controllers │ ├── UserController.cs │ └── ValuesController.cs ├── Models │ └── User.cs ├── Program.cs ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json └── wwwroot │ └── index.html ├── Catalog ├── Catalog.csproj ├── Controllers │ ├── ProductController.cs │ └── ValuesController.cs ├── Models │ └── Product.cs ├── Program.cs ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json └── wwwroot │ └── index.html ├── Gateway ├── Controllers │ └── ValuesController.cs ├── Gateway.csproj ├── Program.cs ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── GatewayDemo.sln └── Ledger ├── Controllers ├── TransactionController.cs └── ValuesController.cs ├── Ledger.csproj ├── Models └── Transaction.cs ├── Program.cs ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json └── wwwroot └── index.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/README.md -------------------------------------------------------------------------------- /final/Authentication/Authentication.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Authentication.csproj -------------------------------------------------------------------------------- /final/Authentication/Controllers/UserController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Controllers/UserController.cs -------------------------------------------------------------------------------- /final/Authentication/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /final/Authentication/Models/User.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Models/User.cs -------------------------------------------------------------------------------- /final/Authentication/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Program.cs -------------------------------------------------------------------------------- /final/Authentication/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/Startup.cs -------------------------------------------------------------------------------- /final/Authentication/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/appsettings.Development.json -------------------------------------------------------------------------------- /final/Authentication/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/appsettings.json -------------------------------------------------------------------------------- /final/Authentication/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Authentication/wwwroot/index.html -------------------------------------------------------------------------------- /final/Catalog/Catalog.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Catalog.csproj -------------------------------------------------------------------------------- /final/Catalog/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Controllers/ProductController.cs -------------------------------------------------------------------------------- /final/Catalog/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /final/Catalog/Models/Product.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Models/Product.cs -------------------------------------------------------------------------------- /final/Catalog/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Program.cs -------------------------------------------------------------------------------- /final/Catalog/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/Startup.cs -------------------------------------------------------------------------------- /final/Catalog/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/appsettings.Development.json -------------------------------------------------------------------------------- /final/Catalog/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/appsettings.json -------------------------------------------------------------------------------- /final/Catalog/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Catalog/wwwroot/index.html -------------------------------------------------------------------------------- /final/Gateway/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /final/Gateway/Gateway.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/Gateway.csproj -------------------------------------------------------------------------------- /final/Gateway/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/Program.cs -------------------------------------------------------------------------------- /final/Gateway/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/Startup.cs -------------------------------------------------------------------------------- /final/Gateway/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/appsettings.Development.json -------------------------------------------------------------------------------- /final/Gateway/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/appsettings.json -------------------------------------------------------------------------------- /final/Gateway/ocelot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Gateway/ocelot.json -------------------------------------------------------------------------------- /final/GatewayDemo.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/GatewayDemo.sln -------------------------------------------------------------------------------- /final/Ledger/Controllers/TransactionController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Controllers/TransactionController.cs -------------------------------------------------------------------------------- /final/Ledger/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /final/Ledger/Ledger.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Ledger.csproj -------------------------------------------------------------------------------- /final/Ledger/Models/Transaction.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Models/Transaction.cs -------------------------------------------------------------------------------- /final/Ledger/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Program.cs -------------------------------------------------------------------------------- /final/Ledger/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/Startup.cs -------------------------------------------------------------------------------- /final/Ledger/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/appsettings.Development.json -------------------------------------------------------------------------------- /final/Ledger/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/appsettings.json -------------------------------------------------------------------------------- /final/Ledger/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/final/Ledger/wwwroot/index.html -------------------------------------------------------------------------------- /scripts/001_initialize-projects.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/001_initialize-projects.sh -------------------------------------------------------------------------------- /scripts/002_initialize-solution.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/002_initialize-solution.sh -------------------------------------------------------------------------------- /scripts/003_install-ocelot.sh: -------------------------------------------------------------------------------- 1 | cd Gateway 2 | 3 | dotnet add package Ocelot --version 10.0.4 -------------------------------------------------------------------------------- /scripts/004_write-authentication-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/004_write-authentication-code.sh -------------------------------------------------------------------------------- /scripts/005_write-catalog-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/005_write-catalog-code.sh -------------------------------------------------------------------------------- /scripts/006_write-ledger-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/006_write-ledger-code.sh -------------------------------------------------------------------------------- /scripts/007_write-gateway-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/007_write-gateway-code.sh -------------------------------------------------------------------------------- /scripts/100_build-api-gateway.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/scripts/100_build-api-gateway.sh -------------------------------------------------------------------------------- /test/001_initialize-projects.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/001_initialize-projects.sh -------------------------------------------------------------------------------- /test/002_initialize-solution.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/002_initialize-solution.sh -------------------------------------------------------------------------------- /test/003_install-ocelot.sh: -------------------------------------------------------------------------------- 1 | cd Gateway 2 | 3 | dotnet add package Ocelot --version 10.0.4 -------------------------------------------------------------------------------- /test/004_write-authentication-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/004_write-authentication-code.sh -------------------------------------------------------------------------------- /test/005_write-catalog-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/005_write-catalog-code.sh -------------------------------------------------------------------------------- /test/006_write-ledger-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/006_write-ledger-code.sh -------------------------------------------------------------------------------- /test/007_write-gateway-code.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/007_write-gateway-code.sh -------------------------------------------------------------------------------- /test/100_build-api-gateway.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/100_build-api-gateway.sh -------------------------------------------------------------------------------- /test/Authentication/Authentication.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Authentication.csproj -------------------------------------------------------------------------------- /test/Authentication/Controllers/UserController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Controllers/UserController.cs -------------------------------------------------------------------------------- /test/Authentication/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /test/Authentication/Models/User.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Models/User.cs -------------------------------------------------------------------------------- /test/Authentication/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Program.cs -------------------------------------------------------------------------------- /test/Authentication/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/Startup.cs -------------------------------------------------------------------------------- /test/Authentication/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/appsettings.Development.json -------------------------------------------------------------------------------- /test/Authentication/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/appsettings.json -------------------------------------------------------------------------------- /test/Authentication/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Authentication/wwwroot/index.html -------------------------------------------------------------------------------- /test/Catalog/Catalog.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Catalog.csproj -------------------------------------------------------------------------------- /test/Catalog/Controllers/ProductController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Controllers/ProductController.cs -------------------------------------------------------------------------------- /test/Catalog/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /test/Catalog/Models/Product.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Models/Product.cs -------------------------------------------------------------------------------- /test/Catalog/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Program.cs -------------------------------------------------------------------------------- /test/Catalog/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/Startup.cs -------------------------------------------------------------------------------- /test/Catalog/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/appsettings.Development.json -------------------------------------------------------------------------------- /test/Catalog/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/appsettings.json -------------------------------------------------------------------------------- /test/Catalog/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Catalog/wwwroot/index.html -------------------------------------------------------------------------------- /test/Gateway/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /test/Gateway/Gateway.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/Gateway.csproj -------------------------------------------------------------------------------- /test/Gateway/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/Program.cs -------------------------------------------------------------------------------- /test/Gateway/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/Startup.cs -------------------------------------------------------------------------------- /test/Gateway/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/appsettings.Development.json -------------------------------------------------------------------------------- /test/Gateway/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Gateway/appsettings.json -------------------------------------------------------------------------------- /test/GatewayDemo.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/GatewayDemo.sln -------------------------------------------------------------------------------- /test/Ledger/Controllers/TransactionController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Controllers/TransactionController.cs -------------------------------------------------------------------------------- /test/Ledger/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /test/Ledger/Ledger.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Ledger.csproj -------------------------------------------------------------------------------- /test/Ledger/Models/Transaction.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Models/Transaction.cs -------------------------------------------------------------------------------- /test/Ledger/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Program.cs -------------------------------------------------------------------------------- /test/Ledger/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/Startup.cs -------------------------------------------------------------------------------- /test/Ledger/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/appsettings.Development.json -------------------------------------------------------------------------------- /test/Ledger/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/appsettings.json -------------------------------------------------------------------------------- /test/Ledger/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/allanchua101/ocelot-api-gateway/HEAD/test/Ledger/wwwroot/index.html --------------------------------------------------------------------------------