This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker images demo/* | |
| REPOSITORY TAG IMAGE ID CREATED SIZE | |
| demo/gateway-api latest 00a9bb7d6e41 6 minutes ago 298MB | |
| demo/catalog-api latest 43205442eae5 8 minutes ago 294MB | |
| demo/ledger-api latest c385cc51dfed 10 minutes ago 298MB | |
| demo/authentication-api latest 562df01136a4 12 minutes ago 294MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker build -t demo/authentication-api ./Authentication/ | |
| docker build -t demo/ledger-api ./Ledger/ | |
| docker build -t demo/catalog-api ./Catalog/ | |
| docker build -t demo/gateway-api ./Gateway/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Pulls a build image for compiling your | |
| # application inside a container. | |
| FROM microsoft/dotnet:sdk AS build-env | |
| WORKDIR /app | |
| # Copy csproj into the docker container | |
| COPY *.csproj ./ | |
| # Downloads the nuget packages | |
| # required by your application into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "productID":"ef29fc61-abcc-4ac1-9c8c-e5e17b266868", | |
| "userID":"539bf338-e5de-4fc4-ac65-4a91324d8111", | |
| "priceAtPointInTime":36.0, | |
| "occuredAt":"2018-05-05T00:00:00", | |
| "quantity":5.0, | |
| "total":180.0 | |
| },{ | |
| "productID":"ef29fc61-abcc-4ac1-9c8c-e5e17b266868", | |
| "userID":"539bf338-e5de-4fc4-ac65-4a91324d8111", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "GlobalConfiguration": { | |
| "BaseUrl": "http://localhost:52793", | |
| "RateLimitOptions": { | |
| "DisableRateLimitHeaders": false, | |
| "QuotaExceededMessage": "Customize Tips!", | |
| "HttpStatusCode": 999, | |
| "ClientIdHeader": "Test" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "DownstreamPathTemplate": "/api/transaction/getbyuserid/{id}", | |
| "DownstreamScheme": "http", | |
| "DownstreamHostAndPorts": [ | |
| { | |
| "Host": "localhost", | |
| "Port": 52790 | |
| } | |
| ], | |
| "UpstreamPathTemplate": "/api/transaction/getbyuserid/{id}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"user-profile":{ | |
| "userId":"539bf338-e5de-4fc4-ac65-4a91324d8111", | |
| "firstName":"Allan", | |
| "lastName":"Chua" | |
| },"user-transactions":[{ | |
| "productID":"ef29fc61-abcc-4ac1-9c8c-e5e17b266868", | |
| "userID":"539bf338-e5de-4fc4-ac65-4a91324d8111", | |
| "priceAtPointInTime":36.0, | |
| "occuredAt":"2018-05-05T00:00:00", | |
| "quantity":5.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [HttpGet("/api/user/getbyid/{id}")] | |
| public User GetByID(Guid? id) | |
| { | |
| return users.FirstOrDefault(u => u.UserId == id); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [HttpGet("/api/transaction/getbyuserid/{id}")] | |
| public List<Transaction> GetByUserID(Guid? id) | |
| { | |
| return transactions.Where(t => t.UserID == id) | |
| .ToList(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Aggregates": [ | |
| { | |
| "ReRouteKeys": [ | |
| "user-transactions", | |
| "user-profile" | |
| ], | |
| "UpstreamPathTemplate": "/api/user-transactions/{id}" | |
| } | |
| ] |