From 7a8dfa56161fea3d9c1c8b2dfc86c89296cc2a67 Mon Sep 17 00:00:00 2001 From: Luis Martinez Date: Tue, 25 Jul 2023 08:18:45 -0500 Subject: [PATCH] Reparacion de routes. al dia --- .../Routes/ocelot.SwaggerEndPoints.json | 36 ++-- ApiGateway/Routes/ocelot.afiliados.json | 72 +++++++ ApiGateway/Routes/ocelot.cuentasmedicas.json | 28 ++- .../Routes/ocelot.laboratorioclinico.json | 22 +- .../Routes/ocelot.procesosestrategicos.json | 202 ++++++++++++++++++ .../MsUsuarios/appsettings.Development.json | 6 +- 6 files changed, 343 insertions(+), 23 deletions(-) create mode 100644 ApiGateway/Routes/ocelot.procesosestrategicos.json diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index cfa1ef4..609e029 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -160,19 +160,17 @@ } ] }, - - { - "Key": "MsComiteTC", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsComiteTC", - "Version": "1.0", - "Url": "http://localhost:8166/swagger/v1/swagger.json" - } - ] - }, - + //{ + // "Key": "MsComiteTC", + // "TransformByOcelotConfig": true, + // "Config": [ + // { + // "Name": "MsComiteTC", + // "Version": "1.0", + // "Url": "http://localhost:8166/swagger/v1/swagger.json" + // } + // ] + //}, { "Key": "MsInformes", "TransformByOcelotConfig": true, @@ -339,7 +337,19 @@ "Url": "http://localhost:8161/swagger/v1/swagger.json" } ] + }, + { + "Key": "MsProcesosEstrategicos", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsProcesosEstrategicos", + "Version": "1.0", + "Url": "http://localhost:8175/swagger/v1/swagger.json" + } + ] } + ] } diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index c08267f..8a0b4ee 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -234,6 +234,60 @@ "POST" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/AportesAfil", + "DownstreamPathTemplate": "/AportesAfil", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/AportesAfil", + "DownstreamPathTemplate": "/AportesAfil", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/AportesAfil/Masivo", + "DownstreamPathTemplate": "/AportesAfil/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Archivos", @@ -288,6 +342,24 @@ "GET" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/BitacoraAfil/Afiliado", + "DownstreamPathTemplate": "/BitacoraAfil/Afiliado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/BitacoraAfil/Masivo", diff --git a/ApiGateway/Routes/ocelot.cuentasmedicas.json b/ApiGateway/Routes/ocelot.cuentasmedicas.json index d93bcf7..ff84dd7 100644 --- a/ApiGateway/Routes/ocelot.cuentasmedicas.json +++ b/ApiGateway/Routes/ocelot.cuentasmedicas.json @@ -87,13 +87,13 @@ "permisos": "any" }, "UpstreamHttpMethod": [ - "POST" + "GET" ] }, { "SwaggerKey": "MsCuentasMedicas", - "UpstreamPathTemplate": "/RIPSCM/AllRIPS", - "DownstreamPathTemplate": "/RIPSCM/AllRIPS", + "UpstreamPathTemplate": "/RIPSCM/consecutivo", + "DownstreamPathTemplate": "/RIPSCM/consecutivo", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -110,8 +110,26 @@ }, { "SwaggerKey": "MsCuentasMedicas", - "UpstreamPathTemplate": "/RIPSCM/EAPBS", - "DownstreamPathTemplate": "/RIPSCM/EAPBS", + "UpstreamPathTemplate": "/RIPSCM/SaveRIPS", + "DownstreamPathTemplate": "/RIPSCM/SaveRIPS", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8174 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsCuentasMedicas", + "UpstreamPathTemplate": "/RIPSCM/TestServices", + "DownstreamPathTemplate": "/RIPSCM/TestServices", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { diff --git a/ApiGateway/Routes/ocelot.laboratorioclinico.json b/ApiGateway/Routes/ocelot.laboratorioclinico.json index af4ca3f..898c368 100644 --- a/ApiGateway/Routes/ocelot.laboratorioclinico.json +++ b/ApiGateway/Routes/ocelot.laboratorioclinico.json @@ -396,6 +396,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsLaboratorioClinico", + "UpstreamPathTemplate": "/RecepcionExamenes/Compuesto", + "DownstreamPathTemplate": "/RecepcionExamenes/Compuesto", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8162 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsLaboratorioClinico", "UpstreamPathTemplate": "/RecepcionExamenes/Masivo", @@ -578,8 +596,8 @@ }, { "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/ResultadosExamenes/APIWinsisLab", - "DownstreamPathTemplate": "/ResultadosExamenes/APIWinsisLab", + "UpstreamPathTemplate": "/ResultadosExamenes/CargaMasiva", + "DownstreamPathTemplate": "/ResultadosExamenes/CargaMasiva", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { diff --git a/ApiGateway/Routes/ocelot.procesosestrategicos.json b/ApiGateway/Routes/ocelot.procesosestrategicos.json new file mode 100644 index 0000000..c67f6de --- /dev/null +++ b/ApiGateway/Routes/ocelot.procesosestrategicos.json @@ -0,0 +1,202 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/PE/ArchivosPE", + "DownstreamPathTemplate": "/PE/ArchivosPE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/PE/ArchivosPE/id", + "DownstreamPathTemplate": "/PE/ArchivosPE/id", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ComitesPE", + "DownstreamPathTemplate": "/ComitesPE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ComitesPE", + "DownstreamPathTemplate": "/ComitesPE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ComitesPE/Finalizar", + "DownstreamPathTemplate": "/ComitesPE/Finalizar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/CompromisosCPE", + "DownstreamPathTemplate": "/CompromisosCPE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ConsecutivosActas", + "DownstreamPathTemplate": "/ConsecutivosActas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ConsecutivosActas", + "DownstreamPathTemplate": "/ConsecutivosActas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/ConsecutivosActas", + "DownstreamPathTemplate": "/ConsecutivosActas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/consecutivo", + "DownstreamPathTemplate": "/consecutivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsProcesosEstrategicos", + "UpstreamPathTemplate": "/SeguimientoCPE", + "DownstreamPathTemplate": "/SeguimientoCPE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8175 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + } + ] +} \ No newline at end of file diff --git a/Microservicios/MsUsuarios/appsettings.Development.json b/Microservicios/MsUsuarios/appsettings.Development.json index e41d9e6..b954b97 100644 --- a/Microservicios/MsUsuarios/appsettings.Development.json +++ b/Microservicios/MsUsuarios/appsettings.Development.json @@ -3,9 +3,9 @@ "ConString": "user id=HIMSCAP;password=ITTASA2017;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=181.129.245.90)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROYECTOS)))" }, "RabbitMQConfig": { - "HostName": "localhost", - "UserName": "guest", - "Password": "guest" + "HostName": "10.0.0.69", + "UserName": "user", + "Password": "password" }, "Logging": { "LogLevel": {