From 21726af021e13b6d7bbc8a66db710b53a395bd40 Mon Sep 17 00:00:00 2001 From: Luis M Date: Thu, 25 Jan 2024 15:26:37 -0500 Subject: [PATCH] + Rutas: Tracking (auditoria) --- .../Routes/ocelot.SwaggerEndPoints.json | 12 +++++- ApiGateway/Routes/ocelot.mstracking.json | 40 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 ApiGateway/Routes/ocelot.mstracking.json diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 609e029..6d4c791 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -348,8 +348,18 @@ "Url": "http://localhost:8175/swagger/v1/swagger.json" } ] + }, + { + "Key": "MsTracking", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsTracking", + "Version": "1.0", + "Url": "http://localhost:8176/swagger/v1/swagger.json" + } + ] } - ] } diff --git a/ApiGateway/Routes/ocelot.mstracking.json b/ApiGateway/Routes/ocelot.mstracking.json new file mode 100644 index 0000000..ad0fa41 --- /dev/null +++ b/ApiGateway/Routes/ocelot.mstracking.json @@ -0,0 +1,40 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsTracking", + "UpstreamPathTemplate": "/Tracking", + "DownstreamPathTemplate": "/Tracking", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8176 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsTracking", + "UpstreamPathTemplate": "/Tracking", + "DownstreamPathTemplate": "/Tracking", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8176 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file