From e3cb35225ba1f38830eff74e6e5db78c19082dda Mon Sep 17 00:00:00 2001 From: Luis Martinez Date: Thu, 4 May 2023 13:55:58 -0500 Subject: [PATCH] Ajuste de rutas --- .../Routes/ocelot.SwaggerEndPoints.json | 11 + .../Routes/ocelot.auditoriamedicaconc.json | 26 +- ApiGateway/Routes/ocelot.imagenologia.json | 36 ++ ApiGateway/Routes/ocelot.informes.json | 72 ++++ .../Routes/ocelot.mscomteccientifico.json | 400 ++++++++++++++++++ 5 files changed, 541 insertions(+), 4 deletions(-) create mode 100644 ApiGateway/Routes/ocelot.mscomteccientifico.json diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 2839a90..cfa1ef4 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -328,6 +328,17 @@ "Url": "http://localhost:8174/swagger/v1/swagger.json" } ] + }, + { + "Key": "MsComTecCientifico", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsComTecCientifico", + "Version": "1.0", + "Url": "http://localhost:8161/swagger/v1/swagger.json" + } + ] } ] diff --git a/ApiGateway/Routes/ocelot.auditoriamedicaconc.json b/ApiGateway/Routes/ocelot.auditoriamedicaconc.json index 117cfbb..5d557d9 100644 --- a/ApiGateway/Routes/ocelot.auditoriamedicaconc.json +++ b/ApiGateway/Routes/ocelot.auditoriamedicaconc.json @@ -74,8 +74,8 @@ }, { "SwaggerKey": "MsAudMedConcurrente", - "UpstreamPathTemplate": "/InfoConsolMaestroAMC", - "DownstreamPathTemplate": "/InfoConsolMaestroAMC", + "UpstreamPathTemplate": "/InformesAMC", + "DownstreamPathTemplate": "/InformesAMC", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -92,8 +92,8 @@ }, { "SwaggerKey": "MsAudMedConcurrente", - "UpstreamPathTemplate": "/InfoConsolMaestroAMC", - "DownstreamPathTemplate": "/InfoConsolMaestroAMC", + "UpstreamPathTemplate": "/InformesAMC", + "DownstreamPathTemplate": "/InformesAMC", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -107,6 +107,24 @@ "UpstreamHttpMethod": [ "POST" ] + }, + { + "SwaggerKey": "MsAudMedConcurrente", + "UpstreamPathTemplate": "/InformesAMC", + "DownstreamPathTemplate": "/InformesAMC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8163 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] } ] } \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.imagenologia.json b/ApiGateway/Routes/ocelot.imagenologia.json index 216f319..1aa5fd8 100644 --- a/ApiGateway/Routes/ocelot.imagenologia.json +++ b/ApiGateway/Routes/ocelot.imagenologia.json @@ -252,6 +252,42 @@ "POST" ] }, + { + "SwaggerKey": "MsImagenologia", + "UpstreamPathTemplate": "/ResultadoImg/Guardar", + "DownstreamPathTemplate": "/ResultadoImg/Guardar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8158 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsImagenologia", + "UpstreamPathTemplate": "/ResultadoImg/Finalizar", + "DownstreamPathTemplate": "/ResultadoImg/Finalizar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8158 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsImagenologia", "UpstreamPathTemplate": "/ResultadoImg/FechaEntrega", diff --git a/ApiGateway/Routes/ocelot.informes.json b/ApiGateway/Routes/ocelot.informes.json index 9d098b9..e4857d1 100644 --- a/ApiGateway/Routes/ocelot.informes.json +++ b/ApiGateway/Routes/ocelot.informes.json @@ -72,6 +72,78 @@ "GET" ] }, + { + "SwaggerKey": "MsInformes", + "UpstreamPathTemplate": "/Consultas/EjecutarArchivos", + "DownstreamPathTemplate": "/Consultas/EjecutarArchivos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8164 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsInformes", + "UpstreamPathTemplate": "/Disenos", + "DownstreamPathTemplate": "/Disenos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8164 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsInformes", + "UpstreamPathTemplate": "/Disenos", + "DownstreamPathTemplate": "/Disenos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8164 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsInformes", + "UpstreamPathTemplate": "/Disenos", + "DownstreamPathTemplate": "/Disenos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8164 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsInformes", "UpstreamPathTemplate": "/Tablas/ConsultarEstructura", diff --git a/ApiGateway/Routes/ocelot.mscomteccientifico.json b/ApiGateway/Routes/ocelot.mscomteccientifico.json new file mode 100644 index 0000000..f542adc --- /dev/null +++ b/ApiGateway/Routes/ocelot.mscomteccientifico.json @@ -0,0 +1,400 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAut/Archivos", + "DownstreamPathTemplate": "/SolicitudAut/Archivos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAut/Archivos/Pendientes", + "DownstreamPathTemplate": "/SolicitudAut/Archivos/Pendientes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/CasosPorComite", + "DownstreamPathTemplate": "/CasosPorComite", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/CasosPorComite", + "DownstreamPathTemplate": "/CasosPorComite", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/ComiteTC", + "DownstreamPathTemplate": "/ComiteTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/ComiteTC/Reservar", + "DownstreamPathTemplate": "/ComiteTC/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/ComiteTC/Test", + "DownstreamPathTemplate": "/ComiteTC/Test", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/ComiteTC/Guardar", + "DownstreamPathTemplate": "/ComiteTC/Guardar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/ComiteTC/Limpiar", + "DownstreamPathTemplate": "/ComiteTC/Limpiar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC", + "DownstreamPathTemplate": "/NovedadSCTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/Inactivar", + "DownstreamPathTemplate": "/NovedadSCTC/Inactivar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/Activar", + "DownstreamPathTemplate": "/NovedadSCTC/Activar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/Prorroga", + "DownstreamPathTemplate": "/NovedadSCTC/Prorroga", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/Renovar", + "DownstreamPathTemplate": "/NovedadSCTC/Renovar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/Reconsiderar", + "DownstreamPathTemplate": "/NovedadSCTC/Reconsiderar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/NovedadSCTC/DocumentosPendienes", + "DownstreamPathTemplate": "/NovedadSCTC/DocumentosPendienes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamPathTemplate": "/SolicitudAutCTC", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC/Reservar", + "DownstreamPathTemplate": "/SolicitudAutCTC/Reservar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC/Rechazar", + "DownstreamPathTemplate": "/SolicitudAutCTC/Rechazar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC/Rechazos", + "DownstreamPathTemplate": "/SolicitudAutCTC/Rechazos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsComTecCientifico", + "UpstreamPathTemplate": "/SolicitudAutCTC/LimpiarTabla", + "DownstreamPathTemplate": "/SolicitudAutCTC/LimpiarTabla", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8161 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + } + ] +} \ No newline at end of file