-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplemented updated version of sample app
- Loading branch information
1 parent
517eef1
commit 255b61e
Showing
331 changed files
with
14,593 additions
and
16,600 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
Backend/AppServices/FlightManagement/appsettings.Development.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Trace", | ||
"Microsoft.AspNetCore": "Trace" | ||
} | ||
} | ||
} |
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31903.59 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppServices", "AppServices", "{5EA7671B-E745-4CCB-B24B-3399D6E91809}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Gateways", "Gateways", "{3DA359CB-8189-4723-8985-A487FCADAEB9}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlightManagement", "AppServices\FlightManagement\FlightManagement.csproj", "{E790834F-1965-418B-8EBC-C06792824E77}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdminClientApi", "Gateways\AdminClientApi\AdminClientApi.csproj", "{9659FFE9-1262-4D18-A714-2D9F00DBD604}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlightShopping", "AppServices\FlightShopping\FlightShopping.csproj", "{FFB90C99-99BD-407C-A10B-42AF5871C49A}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FFB6B719-5E1B-470F-BC71-85C81F7DA201}" | ||
ProjectSection(SolutionItems) = preProject | ||
global.json = global.json | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E790834F-1965-418B-8EBC-C06792824E77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E790834F-1965-418B-8EBC-C06792824E77}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E790834F-1965-418B-8EBC-C06792824E77}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E790834F-1965-418B-8EBC-C06792824E77}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{9659FFE9-1262-4D18-A714-2D9F00DBD604}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{9659FFE9-1262-4D18-A714-2D9F00DBD604}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{9659FFE9-1262-4D18-A714-2D9F00DBD604}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{9659FFE9-1262-4D18-A714-2D9F00DBD604}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{FFB90C99-99BD-407C-A10B-42AF5871C49A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{FFB90C99-99BD-407C-A10B-42AF5871C49A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{FFB90C99-99BD-407C-A10B-42AF5871C49A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{FFB90C99-99BD-407C-A10B-42AF5871C49A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{E790834F-1965-418B-8EBC-C06792824E77} = {5EA7671B-E745-4CCB-B24B-3399D6E91809} | ||
{9659FFE9-1262-4D18-A714-2D9F00DBD604} = {3DA359CB-8189-4723-8985-A487FCADAEB9} | ||
{FFB90C99-99BD-407C-A10B-42AF5871C49A} = {5EA7671B-E745-4CCB-B24B-3399D6E91809} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {9431CF92-4165-471B-A1BE-CB40F6DC289F} | ||
EndGlobalSection | ||
EndGlobal |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" /> | ||
<PackageReference Include="Fancy.ResourceLinker.Gateway" Version="1.0.0" /> | ||
<PackageReference Include="Fancy.ResourceLinker.Hateoas" Version="1.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains 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
This file contains 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
13 changes: 13 additions & 0 deletions
13
Backend/Gateways/AdminClientApi/Controllers/Flights/FlightEditViewModel.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Fancy.ResourceLinker.Models; | ||
|
||
namespace Gateway.Controllers.Flights; | ||
|
||
public class FlightEditViewModel : DynamicResourceBase | ||
{ | ||
public FlightEditViewModel(DynamicResource flight) | ||
{ | ||
Flight = flight; | ||
} | ||
|
||
public DynamicResource Flight { get; set; } | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Fancy.ResourceLinker.Gateway.Routing; | ||
|
||
namespace Sample.Gateway.Controllers; | ||
|
||
public static class Routes | ||
{ | ||
public static Task<T> GetFlightManagementFlightSummary<T>(this GatewayRouter router) where T : class => | ||
router.GetCachedAsync<T>("FlightManagement", $"/api/flight-management/flights/summary", TimeSpan.FromSeconds(30)); | ||
|
||
public static Task<T> GetFlightShoppingFlightSummary<T>(this GatewayRouter router) where T : class => | ||
router.GetCachedAsync<T>("FlightShopping", $"/api/flight-shopping/flights/summary", TimeSpan.FromSeconds(30)); | ||
|
||
public static Task<List<T>> GetFlightManagementFlights<T>(this GatewayRouter router, string? from, string? to) where T : class => | ||
router.GetAsync<List<T>>("FlightManagement", $"/api/flight-management/flights?from={from ?? ""}&to={to ?? ""}"); | ||
|
||
public static Task<T> GetFlightManagementFlight<T>(this GatewayRouter router, int flightId) where T : class => | ||
router.GetAsync<T>("FlightManagement", $"/api/flight-management/flights/{flightId}"); | ||
|
||
public static Task<T> GetFlightShoppingFlight<T>(this GatewayRouter router, int flightId) where T : class => | ||
router.GetAsync<T>("FlightShopping", $"/api/flight-shopping/flights/{flightId}"); | ||
} |
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Trace", | ||
"Microsoft.AspNetCore": "Trace" | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"rollForward": "latestFeature" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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
Oops, something went wrong.