From 693a835191d2167c5615eab3671e9152d5f0cb40 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 8 Apr 2025 10:44:46 +0200 Subject: [PATCH] Update routing and configuration for EnvelopeGeneratorGenApi - Changed `DesktopBuildPackageLocation` in `IISProfile.pubxml` to point to the new `EnvelopeGeneratorGenApi` project directory. - Updated routing in `ocelot.Development.json` and `ocelot.json`: - Changed `DownstreamScheme` from `https` to `http` for multiple routes. - Updated `Port` for `DownstreamHostAndPorts` from `7120` and `7192` to `8088`. - Expanded `UpstreamHttpMethod` to include `Post`, `Put`, and `Delete`. - Added new routes for `/scalar`, `/scalar/{route}`, and `/scalar/{route1}/{route2}`. - Modified `GlobalConfiguration` `BaseUrl` from `https://localhost:7052` to `http://localhost:8443`. --- Properties/PublishProfiles/IISProfile.pubxml | 2 +- ocelot.Development.json | 102 ++++++++++++++----- ocelot.json | 70 +++++++++++-- 3 files changed, 143 insertions(+), 31 deletions(-) diff --git a/Properties/PublishProfiles/IISProfile.pubxml b/Properties/PublishProfiles/IISProfile.pubxml index 586b025..038b401 100644 --- a/Properties/PublishProfiles/IISProfile.pubxml +++ b/Properties/PublishProfiles/IISProfile.pubxml @@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. true false 329f45bf-4c79-4a7b-9086-d6205617aa42 - P:\Install .Net\0 DD - Smart UP\Gateway\WorkFlow\$(Version)\$(Version).zip + P:\Install .Net\0 DD - Smart UP\Gateway\EnvelopeGeneratorGenApi\$(Version)\$(Version).zip true Gateway <_TargetId>IISWebDeployPackage diff --git a/ocelot.Development.json b/ocelot.Development.json index b16c0f1..971a52f 100644 --- a/ocelot.Development.json +++ b/ocelot.Development.json @@ -2,67 +2,124 @@ "Routes": [ { "DownstreamPathTemplate": "/swagger/{route}", - "DownstreamScheme": "https", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7120 + "Port": 8088 } ], "UpstreamPathTemplate": "/swagger/{route}", - "UpstreamhttpsMethod": [ - "Get" + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" ] }, { - "DownstreamPathTemplate": "/swagger/{route}", - "DownstreamScheme": "https", + "DownstreamPathTemplate": "/swagger/{route1}/{route2}", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7192 + "Port": 8088 } ], - "UpstreamPathTemplate": "/swagger/auth/{route}", - "UpstreamhttpsMethod": [ - "Get" + "UpstreamPathTemplate": "/swagger/{route1}/{route2}", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/scalar", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar/{route}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/scalar/{route}", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar/{route1}/{route2}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/scalar/{route1}/{route2}", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" ] }, { "DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false", - "DownstreamScheme": "https", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7192 + "Port": 8088 } ], "UpstreamPathTemplate": "/api/Auth", - "UpstreamhttpsMethod": [ "Post" ] + "UpstreamHttpMethod": [ "Post" ] }, { "DownstreamPathTemplate": "/api/Auth/check", - "DownstreamScheme": "https", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7120 + "Port": 8088 } ], "UpstreamPathTemplate": "/api/Auth/check", - "UpstreamhttpsMethod": [ "Post" ] + "UpstreamHttpMethod": [ "Post" ] }, { "DownstreamPathTemplate": "/api/{route}", - "DownstreamScheme": "https", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7120 + "Port": 8088 } ], "UpstreamPathTemplate": "/api/{route}", - "UpstreamhttpsMethod": [ + "UpstreamHttpMethod": [ "Get", "Post", "Put", @@ -71,21 +128,20 @@ }, { "DownstreamPathTemplate": "/api/{route}/{id}", - "DownstreamScheme": "https", + "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 7120 + "Port": 8088 } ], "UpstreamPathTemplate": "/api/{route}{id}", - "UpstreamhttpsMethod": [ + "UpstreamHttpMethod": [ "Get", "Delete" ] } ], "GlobalConfiguration": { - "BaseUrl": "https://localhost:7052" } } \ No newline at end of file diff --git a/ocelot.json b/ocelot.json index 1127461..971a52f 100644 --- a/ocelot.json +++ b/ocelot.json @@ -11,21 +11,78 @@ ], "UpstreamPathTemplate": "/swagger/{route}", "UpstreamHttpMethod": [ - "Get" + "Get", + "Post", + "Put", + "Delete" ] }, { - "DownstreamPathTemplate": "/swagger/{route}", + "DownstreamPathTemplate": "/swagger/{route1}/{route2}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/swagger/{route1}/{route2}", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/scalar", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar/{route}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8088 + } + ], + "UpstreamPathTemplate": "/scalar/{route}", + "UpstreamHttpMethod": [ + "Get", + "Post", + "Put", + "Delete" + ] + }, + { + "DownstreamPathTemplate": "/scalar/{route1}/{route2}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 9090 + "Port": 8088 } ], - "UpstreamPathTemplate": "/swagger/auth/{route}", + "UpstreamPathTemplate": "/scalar/{route1}/{route2}", "UpstreamHttpMethod": [ - "Get" + "Get", + "Post", + "Put", + "Delete" ] }, { @@ -34,7 +91,7 @@ "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 9090 + "Port": 8088 } ], "UpstreamPathTemplate": "/api/Auth", @@ -86,6 +143,5 @@ } ], "GlobalConfiguration": { - "BaseUrl": "https://localhost:8443" } } \ No newline at end of file