diff --git a/ApiGateway/CustomLogic.cs b/ApiGateway/CustomLogic.cs index 238da94..210dd89 100644 --- a/ApiGateway/CustomLogic.cs +++ b/ApiGateway/CustomLogic.cs @@ -34,7 +34,8 @@ namespace ApiGateway string calledUrl = ctx.Items.DownstreamRoute().UpstreamPathTemplate.OriginalValue; - logger.LogError(71, $"DownstreamRoute: {calledUrl}"); + //logger.LogError(71, $"DownstreamRoute: {calledUrl}"); + // Excepcion para login, no requiere token if ( String.Equals(calledUrl, "/ldap/Conectar") || @@ -164,7 +165,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; } diff --git a/ApiGateway/Program.cs b/ApiGateway/Program.cs index 5e36c7c..0271076 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) @@ -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; } diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 609e029..a54f97b 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -1,16 +1,5 @@ { "SwaggerEndPoints": [ - { - "Key": "MsPing", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsPing", - "Version": "1.0", - "Url": "http://localhost:8198/swagger/v1/swagger.json" - } - ] - }, { "Key": "ApiGetway", "TransformByOcelotConfig": false, @@ -22,15 +11,80 @@ } ] }, - { - "Key": "MsDatosMaestros", + "Key": "MsAdminUsuarios", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsDatosMaestros", + "Name": "MsAdminUsuarios", "Version": "1.0", - "Url": "http://localhost:8146/swagger/v1/swagger.json" + "Url": "http://localhost:8151/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAfiliados", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAfiliados", + "Version": "1.0", + "Url": "http://localhost:8145/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAgendaMedica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAgendaMedica", + "Version": "1.0", + "Url": "http://localhost:8155/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAudMedConcurrente", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAudMedConcurrente", + "Version": "1.0", + "Url": "http://localhost:8163/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditarHC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditarHC", + "Version": "1.0", + "Url": "http://localhost:8168/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditoria", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditoria", + "Version": "1.0", + "Url": "http://localhost:8167/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditoriaHC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditoriaHC", + "Version": "1.0", + "Url": "http://localhost:8157/swagger/v1/swagger.json" } ] }, @@ -46,51 +100,38 @@ ] }, { - "Key": "MsAdminUsuarios", + "Key": "MsCajaFacturacion", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAdminUsuarios", + "Name": "MsCajaFacturacion", "Version": "1.0", - "Url": "http://localhost:8151/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsAfiliados", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsAfiliados", - "Version": "1.0", - "Url": "http://localhost:8145/swagger/v1/swagger.json" + "Url": "http://localhost:8150/swagger/v1/swagger.json" } ] }, { - "Key": "MsExterno", + "Key": "MsCalidad", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsExterno", + "Name": "MsCalidad", "Version": "1.0", - "Url": "http://localhost:8199/swagger/v1/swagger.json" + "Url": "http://localhost:8172/swagger/v1/swagger.json" } ] }, { - "Key": "MsEmail", + "Key": "MsComTecCientifico", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsEmail", + "Name": "MsComTecCientifico", "Version": "1.0", - "Url": "http://localhost:8170/swagger/v1/swagger.json" + "Url": "http://localhost:8161/swagger/v1/swagger.json" } ] }, - { "Key": "MsContratos", "TransformByOcelotConfig": true, @@ -124,96 +165,47 @@ } ] }, - { - "Key": "MsAgendaMedica", + "Key": "MsCuentasMedicas", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAgendaMedica", + "Name": "MsCuentasMedicas", "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": "MsComiteTC", - // "TransformByOcelotConfig": true, - // "Config": [ - // { - // "Name": "MsComiteTC", - // "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" + "Url": "http://localhost:8174/swagger/v1/swagger.json" } ] }, { - "Key": "MsAuditarHC", + "Key": "MsDatosMaestros", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAuditarHC", + "Name": "MsDatosMaestros", "Version": "1.0", - "Url": "http://localhost:8168/swagger/v1/swagger.json" + "Url": "http://localhost:8146/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsEmail", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsEmail", + "Version": "1.0", + "Url": "http://localhost:8170/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsExterno", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsExterno", + "Version": "1.0", + "Url": "http://localhost:8199/swagger/v1/swagger.json" } ] }, @@ -228,6 +220,17 @@ } ] }, + { + "Key": "MsHistoriaClinica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsHistoriaClinica", + "Version": "1.0", + "Url": "http://localhost:8154/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsImagenologia", "TransformByOcelotConfig": true, @@ -239,6 +242,28 @@ } ] }, + { + "Key": "MsIncapacidadesLicencias", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsIncapacidadesLicencias", + "Version": "1.0", + "Url": "http://localhost:8177/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsInformes", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsInformes", + "Version": "1.0", + "Url": "http://localhost:8164/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsLaboratorioClinico", "TransformByOcelotConfig": true, @@ -250,6 +275,39 @@ } ] }, + { + "Key": "MsLdap", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsLdap", + "Version": "1.0", + "Url": "http://localhost:8173/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsPing", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsPing", + "Version": "1.0", + "Url": "http://localhost:8198/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsProcesosEstrategicos", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsProcesosEstrategicos", + "Version": "1.0", + "Url": "http://localhost:8175/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsProgramacionComite", "TransformByOcelotConfig": true, @@ -273,83 +331,40 @@ ] }, { - "Key": "MsAuditoriaHC", + "Key": "MsReferencia", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAuditoriaHC", + "Name": "MsReferencia", "Version": "1.0", - "Url": "http://localhost:8157/swagger/v1/swagger.json" + "Url": "http://localhost:8160/swagger/v1/swagger.json" } ] }, { - "Key": "MsAuditoria", + "Key": "MsTracking", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAuditoria", + "Name": "MsTracking", "Version": "1.0", - "Url": "http://localhost:8167/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsCalidad", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsCalidad", - "Version": "1.0", - "Url": "http://localhost:8172/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsLdap", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsLdap", - "Version": "1.0", - "Url": "http://localhost:8173/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsCuentasMedicas", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsCuentasMedicas", - "Version": "1.0", - "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" - } - ] - }, - { - "Key": "MsProcesosEstrategicos", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsProcesosEstrategicos", - "Version": "1.0", - "Url": "http://localhost:8175/swagger/v1/swagger.json" + "Url": "http://localhost:8176/swagger/v1/swagger.json" } ] } - - ] } + + + + //{ + // "Key": "MsComiteTC", + // "TransformByOcelotConfig": true, + // "Config": [ + // { + // "Name": "MsComiteTC", + // "Version": "1.0", + // "Url": "http://localhost:8166/swagger/v1/swagger.json" + // } + // ] + //}, diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index 8a0b4ee..66cb584 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -1,5 +1,113 @@ { "Routes": [ + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados", @@ -72,6 +180,24 @@ "GET" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ConsentiAutor", + "DownstreamPathTemplate": "/Afiliados/ConsentiAutor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Aceptar", @@ -198,6 +324,24 @@ "GET" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ActualizarUnisalud", + "DownstreamPathTemplate": "/Afiliados/ActualizarUnisalud", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Contacto", @@ -234,6 +378,42 @@ "POST" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ObtenerAfiliados", + "DownstreamPathTemplate": "/Afiliados/ObtenerAfiliados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/NotificarAfiliado", + "DownstreamPathTemplate": "/Afiliados/NotificarAfiliado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/AportesAfil", @@ -540,6 +720,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes", + "DownstreamPathTemplate": "/PermisosCotizantes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes", + "DownstreamPathTemplate": "/PermisosCotizantes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes/{nuIdCotizanteAfil}", + "DownstreamPathTemplate": "/PermisosCotizantes/{nuIdCotizanteAfil}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/PreguntasDeclaratorias", diff --git a/ApiGateway/Routes/ocelot.agendamedica.json b/ApiGateway/Routes/ocelot.agendamedica.json index b3e75e0..fa25c8f 100644 --- a/ApiGateway/Routes/ocelot.agendamedica.json +++ b/ApiGateway/Routes/ocelot.agendamedica.json @@ -90,6 +90,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/Masivo", + "DownstreamPathTemplate": "/CitasMedicas/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", @@ -198,6 +216,42 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/CupsAM/Buscar", @@ -648,6 +702,78 @@ "GET" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/SeguimientosMultas", + "DownstreamPathTemplate": "/SeguimientosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/SeguimientosMultas", + "DownstreamPathTemplate": "/SeguimientosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosMultas", + "DownstreamPathTemplate": "/TablerosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosMultas", + "DownstreamPathTemplate": "/TablerosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/TablerosPendientes", diff --git a/ApiGateway/Routes/ocelot.contratos.json b/ApiGateway/Routes/ocelot.contratos.json index 1c67ab8..8537e00 100644 --- a/ApiGateway/Routes/ocelot.contratos.json +++ b/ApiGateway/Routes/ocelot.contratos.json @@ -1,59 +1,5 @@ { "Routes": [ - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/BloqueoCAPCTT", @@ -180,6 +126,24 @@ "GET" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/CapCTTPorCTT/FechaBloqueo", @@ -198,24 +162,6 @@ "GET" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/CapCTTPorCTT", - "DownstreamPathTemplate": "/CapCTTPorCTT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/CapCTTPorCTT/Eliminar", @@ -288,42 +234,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Contratos/CambioEstado", - "DownstreamPathTemplate": "/Contratos/CambioEstado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Contratos/EditarCUPMDT", - "DownstreamPathTemplate": "/Contratos/EditarCUPMDT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Contratos/Eliminar", @@ -414,24 +324,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Convenios", - "DownstreamPathTemplate": "/Convenios", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Convenios", @@ -558,6 +450,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups/CargueMasivo", + "DownstreamPathTemplate": "/Cups/CargueMasivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/EAPBS", @@ -666,6 +576,114 @@ "POST" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/EscalasSocioeconomicas", @@ -792,6 +810,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Medicamentos", @@ -882,6 +954,42 @@ "POST" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanBeneficios", + "DownstreamPathTemplate": "/PlanBeneficios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanBeneficios", + "DownstreamPathTemplate": "/PlanBeneficios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Planes", @@ -1242,6 +1350,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/ServiciosPrestador/GrupoCups", @@ -1260,24 +1422,6 @@ "GET" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/ServiciosPrestador/IPS", - "DownstreamPathTemplate": "/ServiciosPrestador/IPS", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasBase", @@ -1334,8 +1478,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/TarifasBase/Eliminar", - "DownstreamPathTemplate": "/TarifasBase/Eliminar", + "UpstreamPathTemplate": "/TarifasBase/Servicios", + "DownstreamPathTemplate": "/TarifasBase/Servicios", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -1347,7 +1491,25 @@ "permisos": "any" }, "UpstreamHttpMethod": [ - "PATCH" + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase/Medicamentos", + "DownstreamPathTemplate": "/TarifasBase/Medicamentos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" ] }, { @@ -1404,29 +1566,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/TarifasPorMDT", - "DownstreamPathTemplate": "/TarifasPorMDT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - - - - - { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasPorCUPMDT/CargueMasivo", @@ -1447,8 +1586,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Cups/CargueMasivo", - "DownstreamPathTemplate": "/Cups/CargueMasivo", + "UpstreamPathTemplate": "/TarifasPorMDT", + "DownstreamPathTemplate": "/TarifasPorMDT", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -1460,9 +1599,26 @@ "permisos": "any" }, "UpstreamHttpMethod": [ - "POST" + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorMDT", + "DownstreamPathTemplate": "/TarifasPorMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" ] } - ] } \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.email.json b/ApiGateway/Routes/ocelot.email.json index efb416c..2843d3a 100644 --- a/ApiGateway/Routes/ocelot.email.json +++ b/ApiGateway/Routes/ocelot.email.json @@ -1,12 +1,9 @@ { "Routes": [ - { "SwaggerKey": "MsEmail", "UpstreamPathTemplate": "/Email", - "UpstreamHttpMethod": [ "POST" ], - - "DownstreamPathTemplate": "/api/Email", + "DownstreamPathTemplate": "/Email", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -16,7 +13,10 @@ ], "RouteClaimsRequirement": { "permisos": "any" - } + }, + "UpstreamHttpMethod": [ + "POST" + ] } ] -} +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.historiaclinica.json b/ApiGateway/Routes/ocelot.historiaclinica.json index 2bf89f7..0423dc0 100644 --- a/ApiGateway/Routes/ocelot.historiaclinica.json +++ b/ApiGateway/Routes/ocelot.historiaclinica.json @@ -414,6 +414,24 @@ "POST" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", @@ -450,6 +468,96 @@ "GET" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidad", + "DownstreamPathTemplate": "/Incapacidad", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidades/Notificar", + "DownstreamPathTemplate": "/Incapacidades/Notificar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidades/Masivo", + "DownstreamPathTemplate": "/Incapacidades/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/PagosLicencias", + "DownstreamPathTemplate": "/PagosLicencias", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/PagosLicencias/Masivo", + "DownstreamPathTemplate": "/PagosLicencias/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/Rias", diff --git a/ApiGateway/Routes/ocelot.incapacidadeslicencias.json b/ApiGateway/Routes/ocelot.incapacidadeslicencias.json new file mode 100644 index 0000000..15030da --- /dev/null +++ b/ApiGateway/Routes/ocelot.incapacidadeslicencias.json @@ -0,0 +1,76 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc/Masivo", + "DownstreamPathTemplate": "/LicenciasInc/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.laboratorioclinico.json b/ApiGateway/Routes/ocelot.laboratorioclinico.json index 898c368..2251716 100644 --- a/ApiGateway/Routes/ocelot.laboratorioclinico.json +++ b/ApiGateway/Routes/ocelot.laboratorioclinico.json @@ -1,77 +1,5 @@ { "Routes": [ - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico/Estado", - "DownstreamPathTemplate": "/AreasLabClinico/Estado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsLaboratorioClinico", "UpstreamPathTemplate": "/CupsItems", @@ -611,78 +539,6 @@ "UpstreamHttpMethod": [ "POST" ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico/Estado", - "DownstreamPathTemplate": "/SeccionesLabClinico/Estado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] } ] } \ No newline at end of file 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 diff --git a/Auth/Properties/launchSettings.json b/Auth/Properties/launchSettings.json new file mode 100644 index 0000000..408ce4f --- /dev/null +++ b/Auth/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "Auth": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:58174;http://localhost:58175" + } + } +} \ No newline at end of file