-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added priority to routes based on API Gateway logic
- Loading branch information
Showing
5 changed files
with
259 additions
and
36 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
22 changes: 22 additions & 0 deletions
22
Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Models/ApiGatewayRouteType.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,22 @@ | ||
namespace Amazon.Lambda.TestTool.Models; | ||
|
||
/// <summary> | ||
/// The type of API Gateway Route. This is used to determine the priority of the route when there is route overlap. | ||
/// </summary> | ||
public enum ApiGatewayRouteType | ||
{ | ||
/// <summary> | ||
/// An exact route with no path variables. | ||
/// </summary> | ||
Exact = 0, | ||
|
||
/// <summary> | ||
/// A route with path variables, but not a greedy variable {proxy+}. | ||
/// </summary> | ||
Variable = 1, | ||
|
||
/// <summary> | ||
/// A route with a greedy path variables. | ||
/// </summary> | ||
Proxy = 2 | ||
} |
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
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