diff --git a/ApiGateway/ApiGateway.csproj b/ApiGateway/ApiGateway.csproj index b66b063..8978b8a 100644 --- a/ApiGateway/ApiGateway.csproj +++ b/ApiGateway/ApiGateway.csproj @@ -36,6 +36,11 @@ + + PreserveNewest + true + PreserveNewest + PreserveNewest true diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 0d2bea1..5bda9b0 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -34,6 +34,17 @@ } ] }, + { + "Key": "MsAutorizacionesHC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAutorizacionesHC", + "Version": "1.0", + "Url": "http://localhost:8147/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsAdminUsuarios", "TransformByOcelotConfig": true, diff --git a/ApiGateway/Routes/ocelot.agendamedica.json b/ApiGateway/Routes/ocelot.agendamedica.json index 01e4f15..f5a8c41 100644 --- a/ApiGateway/Routes/ocelot.agendamedica.json +++ b/ApiGateway/Routes/ocelot.agendamedica.json @@ -2,10 +2,7 @@ "Routes": [ { "SwaggerKey": "MsAgendaMedica", - - "RouteClaimsRequirement": { - "permisos": "any" - }, + "UpstreamPathTemplate": "/CitasMedicas", "DownstreamPathTemplate": "/CitasMedicas", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -14,15 +11,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/CitasMedicas", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas", + "DownstreamPathTemplate": "/CitasMedicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas", + "DownstreamPathTemplate": "/CitasMedicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/CitasNovedad", "DownstreamPathTemplate": "/CitasMedicas/CitasNovedad", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -31,15 +65,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/CitasMedicas/CitasNovedad", - "UpstreamHttpMethod": [ "Post" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/Masivo", "DownstreamPathTemplate": "/CitasMedicas/Masivo", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -48,15 +83,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/CitasMedicas/Masivo", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", "DownstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -65,15 +101,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/Estado", "DownstreamPathTemplate": "/CitasMedicas/Estado", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -82,15 +119,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/CitasMedicas/Estado", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Consultorios", "DownstreamPathTemplate": "/Consultorios", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -99,15 +137,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Consultorios", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Consultorios", + "DownstreamPathTemplate": "/Consultorios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Consultorios", + "DownstreamPathTemplate": "/Consultorios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Consultorios/Estado", "DownstreamPathTemplate": "/Consultorios/Estado", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -116,15 +191,88 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Consultorios/Estado", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CupsAM/Buscar", + "DownstreamPathTemplate": "/CupsAM/Buscar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CupsAM", + "DownstreamPathTemplate": "/CupsAM", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CupsAM", + "DownstreamPathTemplate": "/CupsAM", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CupsAM/RequierenCita", + "DownstreamPathTemplate": "/CupsAM/RequierenCita", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/InfoAfiliadosCitas", "DownstreamPathTemplate": "/InfoAfiliadosCitas", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -133,15 +281,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/InfoAfiliadosCitas", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/InfoAfiliadosCitas", + "DownstreamPathTemplate": "/InfoAfiliadosCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/InfoAfiliadosCitas", + "DownstreamPathTemplate": "/InfoAfiliadosCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos", "DownstreamPathTemplate": "/Medicos", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -150,15 +335,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Medicos", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos", + "DownstreamPathTemplate": "/Medicos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos", + "DownstreamPathTemplate": "/Medicos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos/Masivo", "DownstreamPathTemplate": "/Medicos/Masivo", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -167,15 +389,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Medicos/Masivo", - "UpstreamHttpMethod": [ "Post" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos/Estado", "DownstreamPathTemplate": "/Medicos/Estado", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -184,15 +407,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Medicos/Estado", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos/AsignaFirma", "DownstreamPathTemplate": "/Medicos/AsignaFirma", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -201,15 +425,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Medicos/AsignaFirma", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Medicos/ConsultaFirma", "DownstreamPathTemplate": "/Medicos/ConsultaFirma", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -218,15 +443,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Medicos/ConsultaFirma", - "UpstreamHttpMethod": [ "Get" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/NovedadesCita", "DownstreamPathTemplate": "/NovedadesCita", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -235,15 +461,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/NovedadesCita", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/NovedadesCita", + "DownstreamPathTemplate": "/NovedadesCita", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/NovedadesCita", + "DownstreamPathTemplate": "/NovedadesCita", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/NovedadesCita/Estado", "DownstreamPathTemplate": "/NovedadesCita/Estado", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -252,15 +515,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/NovedadesCita/Estado", - "UpstreamHttpMethod": [ "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/ParametrizadorCitas", "DownstreamPathTemplate": "/ParametrizadorCitas", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -269,15 +533,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/ParametrizadorCitas", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/ParametrizadorCitas", + "DownstreamPathTemplate": "/ParametrizadorCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/ParametrizadorCitas", + "DownstreamPathTemplate": "/ParametrizadorCitas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/ParametrizadorCitas/Masivo", "DownstreamPathTemplate": "/ParametrizadorCitas/Masivo", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -286,15 +587,34 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/ParametrizadorCitas/Masivo", - "UpstreamHttpMethod": [ "Post" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/ParametrizadorCitas/Buscar", + "DownstreamPathTemplate": "/ParametrizadorCitas/Buscar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosPendientes", "DownstreamPathTemplate": "/TablerosPendientes", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -303,15 +623,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/TablerosPendientes", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosPendientes", + "DownstreamPathTemplate": "/TablerosPendientes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosPendientes", + "DownstreamPathTemplate": "/TablerosPendientes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Turnos", "DownstreamPathTemplate": "/Turnos", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -320,15 +677,52 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Turnos", - "UpstreamHttpMethod": [ "Get", "Post", "Patch" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Turnos", + "DownstreamPathTemplate": "/Turnos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Turnos", + "DownstreamPathTemplate": "/Turnos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Turnos/Masivo", "DownstreamPathTemplate": "/Turnos/Masivo", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -337,15 +731,16 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Turnos/Masivo", - "UpstreamHttpMethod": [ "Post" ] - }, - { - "SwaggerKey": "MsAgendaMedica", - "RouteClaimsRequirement": { "permisos": "any" }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/Turnos/Estado", "DownstreamPathTemplate": "/Turnos/Estado", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ @@ -354,8 +749,12 @@ "Port": 8155 } ], - "UpstreamPathTemplate": "/Turnos/Estado", - "UpstreamHttpMethod": [ "Patch" ] + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] } ] -} +} \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.autorizacioneshc.json b/ApiGateway/Routes/ocelot.autorizacioneshc.json new file mode 100644 index 0000000..875bd69 --- /dev/null +++ b/ApiGateway/Routes/ocelot.autorizacioneshc.json @@ -0,0 +1,238 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/ArchivoAutorizacion", + "DownstreamPathTemplate": "/ArchivoAutorizacion", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/ArchivoAutorizacion", + "DownstreamPathTemplate": "/ArchivoAutorizacion", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones", + "DownstreamPathTemplate": "/Autorizaciones", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones", + "DownstreamPathTemplate": "/Autorizaciones", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones", + "DownstreamPathTemplate": "/Autorizaciones", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones/Estado", + "DownstreamPathTemplate": "/Autorizaciones/Estado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones/SelloCopia", + "DownstreamPathTemplate": "/Autorizaciones/SelloCopia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones/Tranferencia", + "DownstreamPathTemplate": "/Autorizaciones/Tranferencia", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/Autorizaciones/Ordenar", + "DownstreamPathTemplate": "/Autorizaciones/Ordenar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/AuxOptometria", + "DownstreamPathTemplate": "/AuxOptometria", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/AuxOptometria", + "DownstreamPathTemplate": "/AuxOptometria", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/InfoAfiliadoAutoriza", + "DownstreamPathTemplate": "/InfoAfiliadoAutoriza", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAutorizacionesHC", + "UpstreamPathTemplate": "/InfoAfiliadoAutoriza", + "DownstreamPathTemplate": "/InfoAfiliadoAutoriza", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8147 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file diff --git a/Microservicios/MsUsuarios/Context/ModelContext.cs b/Microservicios/MsUsuarios/Context/ModelContext.cs index 5745378..dc961ad 100644 --- a/Microservicios/MsUsuarios/Context/ModelContext.cs +++ b/Microservicios/MsUsuarios/Context/ModelContext.cs @@ -31,7 +31,8 @@ namespace MSAdminUsuarios.Context protected override void OnModelCreating(ModelBuilder modelBuilder) { - modelBuilder.HasDefaultSchema("HIMSCAP"); + //modelBuilder.HasDefaultSchema("HIMSCAP"); // => AFQ + modelBuilder.HasDefaultSchema("ADMIN"); modelBuilder.Entity(entity => { diff --git a/Microservicios/MsUsuarios/Program.cs b/Microservicios/MsUsuarios/Program.cs index 7dc2462..f4d04ae 100644 --- a/Microservicios/MsUsuarios/Program.cs +++ b/Microservicios/MsUsuarios/Program.cs @@ -12,8 +12,9 @@ builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); // Cadena de Conexion a Bases de Datos -var connectionString = builder.Configuration.GetConnectionString("DBPrueba"); +//var connectionString = builder.Configuration.GetConnectionString("DBPrueba"); // var connectionString = builder.Configuration.GetConnectionString("DBProd"); +var connectionString = builder.Configuration.GetConnectionString("DBUnisalud"); // Configuración del DbContext builder.Services.AddDbContext(options => diff --git a/Microservicios/MsUsuarios/appsettings.json b/Microservicios/MsUsuarios/appsettings.json index e1a4256..f8fc3c3 100644 --- a/Microservicios/MsUsuarios/appsettings.json +++ b/Microservicios/MsUsuarios/appsettings.json @@ -1,7 +1,8 @@ { "ConnectionStrings": { "DBPrueba": "user id=HIMSCAP;password=ITTASA2017;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=181.129.245.90)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROYECTOS)))", - "DBProd": "user id=HIMSCAP;password=ITTASA2017;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.194)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROYECTOS)))" + "DBProd": "user id=HIMSCAP;password=ITTASA2017;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.194)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROYECTOS)))", + "DBUnisalud": "user id=Admin;password=LWxZwRFgEpBHtnEHR233;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=unisalud.cc6itcnj1ux9.us-east-1.rds.amazonaws.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=UNISALUD)))" }, "Logging": { "LogLevel": {