From 1d95967030cd8f762c3b91d859d753265380e1c1 Mon Sep 17 00:00:00 2001 From: Luis Martinez Date: Tue, 31 Jan 2023 18:47:22 -0500 Subject: [PATCH] Nuevas rutas, AgendaMedica, AuditoriaAM, cuentas cobrar, comitecTC, ref contraref, Caja, DM, mensajes de error reparados, remuevo Logs --- ApiGateway/ApiGateway.csproj | 22 + ApiGateway/CustomLogic.cs | 45 +- ApiGateway/Program.cs | 10 +- .../Routes/ocelot.SwaggerEndPoints.json | 118 +++- ApiGateway/Routes/ocelot.afiliados.json | 60 +-- ApiGateway/Routes/ocelot.agendamedica.json | 361 +++++++++++++ .../Routes/ocelot.auditoriamedicaconc.json | 112 ++++ ApiGateway/Routes/ocelot.cajafacturacion.json | 261 +++++++++ ApiGateway/Routes/ocelot.comitetc.json | 238 ++++++++ .../Routes/ocelot.cuentascobrarget.json | 23 + .../Routes/ocelot.cuentascobrarpost.json | 23 + ApiGateway/Routes/ocelot.datosmaestros.json | 65 ++- ApiGateway/Routes/ocelot.historiaclinica.json | 508 ++++++++++++++++++ ApiGateway/Routes/ocelot.informes.json | 22 + ApiGateway/Routes/ocelot.refcontraref.json | 364 +++++++++++++ 15 files changed, 2162 insertions(+), 70 deletions(-) create mode 100644 ApiGateway/Routes/ocelot.agendamedica.json create mode 100644 ApiGateway/Routes/ocelot.auditoriamedicaconc.json create mode 100644 ApiGateway/Routes/ocelot.cajafacturacion.json create mode 100644 ApiGateway/Routes/ocelot.comitetc.json create mode 100644 ApiGateway/Routes/ocelot.cuentascobrarget.json create mode 100644 ApiGateway/Routes/ocelot.cuentascobrarpost.json create mode 100644 ApiGateway/Routes/ocelot.historiaclinica.json create mode 100644 ApiGateway/Routes/ocelot.informes.json create mode 100644 ApiGateway/Routes/ocelot.refcontraref.json diff --git a/ApiGateway/ApiGateway.csproj b/ApiGateway/ApiGateway.csproj index 704082a..b66b063 100644 --- a/ApiGateway/ApiGateway.csproj +++ b/ApiGateway/ApiGateway.csproj @@ -17,6 +17,10 @@ + + <_ContentIncludedByDefault Remove="Routes\ocelot.historiaclinica.json" /> + + @@ -31,6 +35,24 @@ + + + PreserveNewest + true + PreserveNewest + + + PreserveNewest + true + PreserveNewest + + + PreserveNewest + true + PreserveNewest + + + diff --git a/ApiGateway/CustomLogic.cs b/ApiGateway/CustomLogic.cs index 7880186..5018ffa 100644 --- a/ApiGateway/CustomLogic.cs +++ b/ApiGateway/CustomLogic.cs @@ -23,8 +23,8 @@ namespace ApiGateway //var route2 = ctx.Items.DownstreamRequest(); //Solo el path del request //var route3 = ctx.Items.DownstreamRoute(); //Datos full del request - var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); - var logger = loggerFactory.CreateLogger("Auth"); + //var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); + //var logger = loggerFactory.CreateLogger("Auth"); string calledUrl = ctx.Items.DownstreamRoute().UpstreamPathTemplate.OriginalValue; @@ -49,15 +49,18 @@ namespace ApiGateway signature = Base64Decode(signature); - if (String.IsNullOrEmpty(authString)) throw new Exception("Nel wey, no hay token"); - + if (String.IsNullOrEmpty(authString)) + throw new Exception("No se encontró una sesión activa. Por favor inicie sesión de nuevo."); + // string? jwtDescifrado = DesCifrar(authString.Replace("Bearer ", "")); - if (String.IsNullOrEmpty(jwtDescifrado)) throw new Exception("Nel wey, token inválido"); - + if (String.IsNullOrEmpty(jwtDescifrado)) + throw new Exception("La sesión es inválida. Por favor inicie sesión de nuevo. 0"); + //Token invalido (firma invalida) var jwtToken = new JwtSecurityToken(jwtDescifrado); - if (VerifyToken(jwtToken.RawData) == false) throw new Exception("Firma inválida"); + if (VerifyToken(jwtToken.RawData) == false) + throw new Exception("La sesión es inválida. Por favor inicie sesión de nuevo. 1"); //Claims dentro del .json @@ -117,7 +120,7 @@ namespace ApiGateway //Si no hay perfil seleccionado if (String.IsNullOrEmpty(signature)) - throw new Exception("Falta el perfil, no mames"); + throw new Exception("Debe seleccionar un perfil para acceder a esta información."); bool aplicaRolSeleccionado = rolesLst.Any(signature!.Contains); @@ -135,7 +138,7 @@ namespace ApiGateway } catch (Exception e) { - logger.LogError(71, e.Message); + //logger.LogError(71, e.Message); ctx.Items.SetError(new UnauthenticatedError(e.Message)); return false; } @@ -146,8 +149,8 @@ namespace ApiGateway { if(_encript.IsValid == false) return false; - var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); - var logger = loggerFactory.CreateLogger("VerifyToken"); + //var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); + //var logger = loggerFactory.CreateLogger("VerifyToken"); var sb = new StringBuilder() .AppendLine("Error en: VerifyToken"); @@ -171,7 +174,7 @@ namespace ApiGateway { sb.AppendLine("SecurityTokenException"); sb.AppendLine(se.Message); - logger.LogError(96, sb.ToString()); + //logger.LogError(96, sb.ToString()); return false; } catch (Exception e) @@ -181,7 +184,7 @@ namespace ApiGateway sb.AppendLine("Exception"); sb.AppendLine(e.Message); - logger.LogError(96, sb.ToString()); + //logger.LogError(96, sb.ToString()); return false; //throw; @@ -210,14 +213,14 @@ namespace ApiGateway } catch (Exception e) { - var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); - var logger = loggerFactory.CreateLogger("Decrypt"); + //var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); + //var logger = loggerFactory.CreateLogger("Decrypt"); var sb = new StringBuilder() .AppendLine("Error en: DesCifrar") .AppendLine("Exception") .AppendLine(e.Message); - logger.LogError(96, sb.ToString()); + //logger.LogError(96, sb.ToString()); return null; } } @@ -234,11 +237,11 @@ namespace ApiGateway var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); var logger = loggerFactory.CreateLogger("Base64Decode"); - var sb = new StringBuilder() - .AppendLine("Error en: Base64Decode") - .AppendLine("Exception") - .AppendLine(e.Message); - logger.LogError(96, sb.ToString()); + //var sb = new StringBuilder() + // .AppendLine("Error en: Base64Decode") + // .AppendLine("Exception") + // .AppendLine(e.Message); + //logger.LogError(96, sb.ToString()); return null; } } diff --git a/ApiGateway/Program.cs b/ApiGateway/Program.cs index fff1ff6..5e36c7c 100644 --- a/ApiGateway/Program.cs +++ b/ApiGateway/Program.cs @@ -20,7 +20,7 @@ builder.Configuration.AddOcelotWithSwaggerSupport(options => var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); -var logger = loggerFactory.CreateLogger("Gateway"); +//var logger = loggerFactory.CreateLogger("Gateway"); builder.Configuration.SetBasePath(builder.Environment.ContentRootPath) .AddJsonFile("ocelot.json", optional: false, reloadOnChange: true) @@ -43,7 +43,7 @@ var pipeConfig = new OcelotPipelineConfiguration .Append("Ingreso PipeLine: ").AppendLine(date) .Append("calledUrl: ").AppendLine(url) .Append("path: ").AppendLine(path); - logger.LogInformation(69, sb.ToString()); + //logger.LogInformation(69, sb.ToString()); bool isAuthorized = CustomLogic.Authorize(downStreamContext); if (isAuthorized) @@ -51,7 +51,7 @@ var pipeConfig = new OcelotPipelineConfiguration var sb2 = new StringBuilder() .AppendLine("Is authorized: ").Append(isAuthorized) .AppendLine("Date: ").Append(date); - logger.LogInformation(69, sb2.ToString()); + //logger.LogInformation(69, sb2.ToString()); await next.Invoke(); } else @@ -61,7 +61,7 @@ var pipeConfig = new OcelotPipelineConfiguration .Append("Date: ").AppendLine(date) .Append("Errors: ") .AppendLine(downStreamContext.Items.Errors().ToString()); - logger.LogWarning(27, sb2.ToString()); + //logger.LogWarning(27, sb2.ToString()); //downStreamContext.Items.SetError(new UnauthenticatedError("Nel wey, no estas autorizado")); return; } @@ -131,7 +131,7 @@ app.UseSwaggerForOcelotUI(options => { var sb = new StringBuilder() .Append("Inicia ocleot: "); - logger.LogInformation(73, sb.ToString()); + //logger.LogInformation(73, sb.ToString()); options.PathToSwaggerGenerator = "/swagger/docs"; options.ReConfigureUpstreamSwaggerJson = AlterUpstream.AlterUpstreamSwaggerJson; diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index d2fd816..0d2bea1 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -11,7 +11,6 @@ } ] }, - { "Key": "ApiGetway", "TransformByOcelotConfig": false, @@ -19,7 +18,7 @@ { "Name": "ApiGetway", "Version": "1.0", - "Url": "http://localhost:80/api/swagger/v1/swagger.json" + "Url": "http://localhost:8165/api/swagger/v1/swagger.json" } ] }, @@ -35,7 +34,6 @@ } ] }, - { "Key": "MsAdminUsuarios", "TransformByOcelotConfig": true, @@ -49,17 +47,16 @@ }, { - "Key": "Afiliados", + "Key": "MsAfiliados", "TransformByOcelotConfig": true, "Config": [ { - "Name": "Afiliados", + "Name": "MsAfiliados", "Version": "1.0", "Url": "http://localhost:8145/swagger/v1/swagger.json" } ] }, - { "Key": "Externo", "TransformByOcelotConfig": true, @@ -71,7 +68,6 @@ } ] }, - { "Key": "Email", "TransformByOcelotConfig": true, @@ -94,10 +90,116 @@ "Url": "http://localhost:8149/swagger/v1/swagger.json" } ] + }, + { + "Key": "MsCuentasCobrarGet", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsCuentasCobrarGet", + "Version": "1.0", + "Url": "http://localhost:8153/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsCuentasCobrarPost", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsCuentasCobrarPost", + "Version": "1.0", + "Url": "http://localhost:8152/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsAgendaMedica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAgendaMedica", + "Version": "1.0", + "Url": "http://localhost:8155/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsCajaFacturacion", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsCajaFacturacion", + "Version": "1.0", + "Url": "http://localhost:8150/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsReferencia", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsReferencia", + "Version": "1.0", + "Url": "http://localhost:8160/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "ComiteTC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "ComiteTC", + "Version": "1.0", + "Url": "http://localhost:8166/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsInformes", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsInformes", + "Version": "1.0", + "Url": "http://localhost:8164/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsAudMedConcurrente", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAudMedConcurrente", + "Version": "1.0", + "Url": "http://localhost:8163/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsHistoriaClinica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsHistoriaClinica", + "Version": "1.0", + "Url": "http://localhost:8154/swagger/v1/swagger.json" + } + ] } //{ - // "Key": "apitest", + // "Key": "apitest",MsAudMedConcurrente // "TransformByOcelotConfig": true, // "Config": [ // { diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index a8712ee..74352ee 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -1,7 +1,7 @@ { "Routes": [ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados", "UpstreamHttpMethod": [ "Get" ], @@ -20,7 +20,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados", "UpstreamHttpMethod": [ "Post" ], @@ -39,7 +39,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Documento", "UpstreamHttpMethod": [ "Get" ], @@ -58,7 +58,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Aceptar", "UpstreamHttpMethod": [ "Post" ], @@ -77,7 +77,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/SubirSoporte", "UpstreamHttpMethod": [ "Post" ], @@ -96,7 +96,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/CheckDocumento", "UpstreamHttpMethod": [ "Get" ], @@ -115,7 +115,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Rechazar", "UpstreamHttpMethod": [ "Post" ], @@ -134,7 +134,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Aprobar", "UpstreamHttpMethod": [ "Post" ], @@ -153,7 +153,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Generar", "UpstreamHttpMethod": [ "Patch" ], @@ -172,7 +172,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Retirar", "UpstreamHttpMethod": [ "Post" ], @@ -190,7 +190,7 @@ }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados", "UpstreamHttpMethod": [ "Patch" ], @@ -209,7 +209,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/GrupoFamiliar", "UpstreamHttpMethod": [ "Get" ], @@ -227,7 +227,7 @@ }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Contacto", "UpstreamHttpMethod": [ "PATCH" ], @@ -246,7 +246,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Archivos", "UpstreamHttpMethod": [ "Get" ], @@ -265,7 +265,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/DeclaratoriasPorAfiliado", "UpstreamHttpMethod": [ "Get" ], @@ -284,7 +284,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/PreguntasDeclaratorias", "UpstreamHttpMethod": [ "Get" ], @@ -303,7 +303,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/UPCAdicional", "UpstreamHttpMethod": [ "Get" ], @@ -322,7 +322,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/UPCAdicional", "UpstreamHttpMethod": [ "Post" ], @@ -341,7 +341,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/UPCAdicional", "UpstreamHttpMethod": [ "Patch" ], @@ -361,7 +361,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Archivos/Afiliado", "UpstreamHttpMethod": [ "GET" ], @@ -379,7 +379,7 @@ }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Declaratorias/Afiliado", "UpstreamHttpMethod": [ "GET" ], @@ -398,7 +398,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/MotivosNovedades", "UpstreamHttpMethod": [ "Get" ], @@ -415,7 +415,7 @@ } }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/MotivosNovedades", "UpstreamHttpMethod": [ "POST" ], @@ -435,7 +435,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Novedades", "UpstreamHttpMethod": [ "GET" ], @@ -453,7 +453,7 @@ }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Novedades", "UpstreamHttpMethod": [ "POST" ], @@ -470,7 +470,7 @@ } }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Novedades", "UpstreamHttpMethod": [ "PATCH" ], @@ -487,7 +487,7 @@ } }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Novedades/EditarLeido", "UpstreamHttpMethod": [ "PATCH" ], @@ -506,7 +506,7 @@ { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/TiposNovedades", "UpstreamHttpMethod": [ "GET" ], @@ -524,7 +524,7 @@ }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/TiposMotivos", "UpstreamHttpMethod": [ "GET" ], @@ -541,7 +541,7 @@ } }, { - "SwaggerKey": "Afiliados", + "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/TiposMotivos", "UpstreamHttpMethod": [ "Post" ], diff --git a/ApiGateway/Routes/ocelot.agendamedica.json b/ApiGateway/Routes/ocelot.agendamedica.json new file mode 100644 index 0000000..01e4f15 --- /dev/null +++ b/ApiGateway/Routes/ocelot.agendamedica.json @@ -0,0 +1,361 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CitasMedicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/CitasMedicas", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CitasMedicas/CitasNovedad", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/CitasMedicas/CitasNovedad", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CitasMedicas/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/CitasMedicas/Masivo", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CitasMedicas/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/CitasMedicas/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Consultorios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Consultorios", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Consultorios/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Consultorios/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/InfoAfiliadosCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/InfoAfiliadosCitas", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Medicos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Medicos", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Medicos/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Medicos/Masivo", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Medicos/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Medicos/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Medicos/AsignaFirma", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Medicos/AsignaFirma", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Medicos/ConsultaFirma", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Medicos/ConsultaFirma", + "UpstreamHttpMethod": [ "Get" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/NovedadesCita", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/NovedadesCita", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/NovedadesCita/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/NovedadesCita/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/ParametrizadorCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/ParametrizadorCitas", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/ParametrizadorCitas/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/ParametrizadorCitas/Masivo", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/TablerosPendientes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/TablerosPendientes", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Turnos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Turnos", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Turnos/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Turnos/Masivo", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsAgendaMedica", + + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Turnos/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "UpstreamPathTemplate": "/Turnos/Estado", + "UpstreamHttpMethod": [ "Patch" ] + } + ] +} diff --git a/ApiGateway/Routes/ocelot.auditoriamedicaconc.json b/ApiGateway/Routes/ocelot.auditoriamedicaconc.json new file mode 100644 index 0000000..117cfbb --- /dev/null +++ b/ApiGateway/Routes/ocelot.auditoriamedicaconc.json @@ -0,0 +1,112 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamPathTemplate": "/AudMedConcurrentes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/AudMedConcurrentes/Referencia", + "DownstreamPathTemplate": "/AudMedConcurrentes/Referencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/InfoConsolMaestroAMC", + "DownstreamPathTemplate": "/InfoConsolMaestroAMC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/InfoConsolMaestroAMC", + "DownstreamPathTemplate": "/InfoConsolMaestroAMC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.cajafacturacion.json b/ApiGateway/Routes/ocelot.cajafacturacion.json new file mode 100644 index 0000000..8d9411b --- /dev/null +++ b/ApiGateway/Routes/ocelot.cajafacturacion.json @@ -0,0 +1,261 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/CuentasPorCobrar/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/CuentasPorCobrar/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Facturas/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Facturas/Reservar", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Facturas/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Facturas/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Facturas/SelloCopia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Facturas/SelloCopia", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Facturas/AnularFactura", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Facturas/AnularFactura", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/MaestroEfectivoBase/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/MaestroEfectivoBase/Estado", + "UpstreamHttpMethod": [ "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Transacciones/Pagos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Transacciones/Pagos", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Transacciones/CargueMasivoPSE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Transacciones/CargueMasivoPSE", + "UpstreamHttpMethod": [ "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Cajas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Cajas", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/DetalleFactura", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/DetalleFactura", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Facturas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Facturas", + "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/MaestroEfectivoBase", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/MaestroEfectivoBase", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/NovedadesCaja", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/NovedadesCaja", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Observaciones", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Observaciones", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/Transacciones", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/Transacciones", + "UpstreamHttpMethod": [ "Get", "Post" ] + }, + { + "SwaggerKey": "MsCajaFacturacion", + "RouteClaimsRequirement": { + "permisos": "any" + }, + "DownstreamPathTemplate": "/MsCajaFacturacion/Usuarios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8150 + } + ], + "UpstreamPathTemplate": "/MsCajaFacturacion/Usuarios", + "UpstreamHttpMethod": [ "Get", "Post" ] + } + ] +} diff --git a/ApiGateway/Routes/ocelot.comitetc.json b/ApiGateway/Routes/ocelot.comitetc.json new file mode 100644 index 0000000..7542155 --- /dev/null +++ b/ApiGateway/Routes/ocelot.comitetc.json @@ -0,0 +1,238 @@ +{ + "Routes": [ + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAut/Archivos", + "DownstreamPathTemplate": "/SolicitudAut/Archivos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/CasosPorComite", + "DownstreamPathTemplate": "/CasosPorComite", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/CasosPorComite", + "DownstreamPathTemplate": "/CasosPorComite", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/ComiteTC", + "DownstreamPathTemplate": "/ComiteTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/ComiteTC/Reservar", + "DownstreamPathTemplate": "/ComiteTC/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/ComiteTC/Test", + "DownstreamPathTemplate": "/ComiteTC/Test", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/ComiteTC/Guardar", + "DownstreamPathTemplate": "/ComiteTC/Guardar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/ComiteTC/Limpiar", + "DownstreamPathTemplate": "/ComiteTC/Limpiar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAutCTC/Reservar", + "DownstreamPathTemplate": "/SolicitudAutCTC/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAutCTC/Rechazar", + "DownstreamPathTemplate": "/SolicitudAutCTC/Rechazar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "ComiteTC", + "UpstreamPathTemplate": "/SolicitudAutCTC/LimpiarTabla", + "DownstreamPathTemplate": "/SolicitudAutCTC/LimpiarTabla", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8166 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + } + ] +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.cuentascobrarget.json b/ApiGateway/Routes/ocelot.cuentascobrarget.json new file mode 100644 index 0000000..5a79699 --- /dev/null +++ b/ApiGateway/Routes/ocelot.cuentascobrarget.json @@ -0,0 +1,23 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsCuentasCobrarGet", + + "UpstreamPathTemplate": "/GetCuentasCobrar", + "UpstreamHttpMethod": [ "GET" ], + + "DownstreamPathTemplate": "/GetCuentasCobrar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8153 + } + ], + + "RouteClaimsRequirement": { + "permisos": "any" + } + } + ] +} diff --git a/ApiGateway/Routes/ocelot.cuentascobrarpost.json b/ApiGateway/Routes/ocelot.cuentascobrarpost.json new file mode 100644 index 0000000..9be2c3a --- /dev/null +++ b/ApiGateway/Routes/ocelot.cuentascobrarpost.json @@ -0,0 +1,23 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsCuentasCobrarPost", + + "UpstreamPathTemplate": "/CuentasCobrar", + "UpstreamHttpMethod": [ "POST" ], + + "DownstreamPathTemplate": "/CuentasCobrar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8152 + } + ], + + "RouteClaimsRequirement": { + "permisos": "any" + } + } + ] +} diff --git a/ApiGateway/Routes/ocelot.datosmaestros.json b/ApiGateway/Routes/ocelot.datosmaestros.json index c13dd12..0149256 100644 --- a/ApiGateway/Routes/ocelot.datosmaestros.json +++ b/ApiGateway/Routes/ocelot.datosmaestros.json @@ -2,10 +2,7 @@ "Routes": [ { "SwaggerKey": "DatosMaestros", - "UpstreamPathTemplate": "/DatosMaestros", - "UpstreamHttpMethod": [ "GET" ], - "DownstreamPathTemplate": "/DatosMaestros", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -14,10 +11,66 @@ "Port": 8146 } ], - "RouteClaimsRequirement": { "permisos": "any" - } + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "DatosMaestros", + "UpstreamPathTemplate": "/DatosMaestros", + "DownstreamPathTemplate": "/DatosMaestros", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8146 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "DatosMaestros", + "UpstreamPathTemplate": "/DatosMaestros/Dato", + "DownstreamPathTemplate": "/DatosMaestros/Dato", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8146 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "DatosMaestros", + "UpstreamPathTemplate": "/DatosMaestros/Relacion", + "DownstreamPathTemplate": "/DatosMaestros/Relacion", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8146 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] } ] -} +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.historiaclinica.json b/ApiGateway/Routes/ocelot.historiaclinica.json new file mode 100644 index 0000000..d001108 --- /dev/null +++ b/ApiGateway/Routes/ocelot.historiaclinica.json @@ -0,0 +1,508 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Hc/Afiliados", + "DownstreamPathTemplate": "/Hc/Afiliados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Hc/Afiliados", + "DownstreamPathTemplate": "/Hc/Afiliados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/AfiliadosPorGret", + "DownstreamPathTemplate": "/AfiliadosPorGret", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/AfiliadosPorGret", + "DownstreamPathTemplate": "/AfiliadosPorGret", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/AfiliadosPorGret/Masivo", + "DownstreamPathTemplate": "/AfiliadosPorGret/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios", + "DownstreamPathTemplate": "/Formularios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios", + "DownstreamPathTemplate": "/Formularios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios/documentosExternos", + "DownstreamPathTemplate": "/Formularios/documentosExternos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios/documentosExternos", + "DownstreamPathTemplate": "/Formularios/documentosExternos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios/relacionDocumento", + "DownstreamPathTemplate": "/Formularios/relacionDocumento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Formularios/relacionarDocumento", + "DownstreamPathTemplate": "/Formularios/relacionarDocumento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamPathTemplate": "/GrupoEtPorRia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GruposEtareos", + "DownstreamPathTemplate": "/GruposEtareos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GruposEtareos", + "DownstreamPathTemplate": "/GruposEtareos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/GruposEtareos", + "DownstreamPathTemplate": "/GruposEtareos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica", + "DownstreamPathTemplate": "/HistoriaClinica", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica", + "DownstreamPathTemplate": "/HistoriaClinica", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/ObtenerHistorialClinicoDeAfiliado/{idAfiliado}", + "DownstreamPathTemplate": "/HistoriaClinica/ObtenerHistorialClinicoDeAfiliado/{idAfiliado}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt/{idHc}", + "DownstreamPathTemplate": "/HistoriaClinica/HcPorDocExt/{idHc}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Rias", + "DownstreamPathTemplate": "/Rias", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Rias", + "DownstreamPathTemplate": "/Rias", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Rias", + "DownstreamPathTemplate": "/Rias", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Temporales/Auditoria", + "DownstreamPathTemplate": "/Temporales/Auditoria", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Temporales/Auditoria", + "DownstreamPathTemplate": "/Temporales/Auditoria", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.informes.json b/ApiGateway/Routes/ocelot.informes.json new file mode 100644 index 0000000..ed47395 --- /dev/null +++ b/ApiGateway/Routes/ocelot.informes.json @@ -0,0 +1,22 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsInformes", + "UpstreamPathTemplate": "/Informes/ConsultaEstructuraTabla", + "DownstreamPathTemplate": "/Informes/ConsultaEstructuraTabla", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8164 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.refcontraref.json b/ApiGateway/Routes/ocelot.refcontraref.json new file mode 100644 index 0000000..26f3047 --- /dev/null +++ b/ApiGateway/Routes/ocelot.refcontraref.json @@ -0,0 +1,364 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/AutorizacionesRef", + "DownstreamPathTemplate": "/AutorizacionesRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/AutorizacionesRef", + "DownstreamPathTemplate": "/AutorizacionesRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Bitacora", + "DownstreamPathTemplate": "/Bitacora", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Bitacora", + "DownstreamPathTemplate": "/Bitacora", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Bitacora", + "DownstreamPathTemplate": "/Bitacora", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Bitacora/Reservar", + "DownstreamPathTemplate": "/Bitacora/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Contrareferencia", + "DownstreamPathTemplate": "/Contrareferencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Contrareferencia", + "DownstreamPathTemplate": "/Contrareferencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Contrareferencia", + "DownstreamPathTemplate": "/Contrareferencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/InfoAfiliadoRef", + "DownstreamPathTemplate": "/InfoAfiliadoRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/InfoAfiliadoRef", + "DownstreamPathTemplate": "/InfoAfiliadoRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Referencia", + "DownstreamPathTemplate": "/Referencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Referencia", + "DownstreamPathTemplate": "/Referencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Referencia/Hospitalizacion", + "DownstreamPathTemplate": "/Referencia/Hospitalizacion", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/Referencia/Reservar", + "DownstreamPathTemplate": "/Referencia/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/SolicitudRef", + "DownstreamPathTemplate": "/SolicitudRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/SolicitudRef", + "DownstreamPathTemplate": "/SolicitudRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/SolicitudRef", + "DownstreamPathTemplate": "/SolicitudRef", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/SolicitudRef/downDF", + "DownstreamPathTemplate": "/SolicitudRef/downDF", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsReferencia", + "UpstreamPathTemplate": "/SolicitudRef/ReadPDF", + "DownstreamPathTemplate": "/SolicitudRef/ReadPDF", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8160 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + } + ] +} \ No newline at end of file