From f2efc9694595ae02baedefbd281844326fa69a94 Mon Sep 17 00:00:00 2001 From: luismd98 Date: Thu, 1 Dec 2022 16:56:28 -0500 Subject: [PATCH] json contratos y email, se agregan excepciones token --- ApiGateway/CustomLogic.cs | 5 +- .../Routes/ocelot.SwaggerEndPoints.json | 56 +- ApiGateway/Routes/ocelot.adminusuarios.json | 20 + ApiGateway/Routes/ocelot.afiliados.json | 67 +- ApiGateway/Routes/ocelot.contratos.json | 1411 ++++++++++++++++- ApiGateway/Routes/ocelot.email.json | 22 + 6 files changed, 1532 insertions(+), 49 deletions(-) create mode 100644 ApiGateway/Routes/ocelot.email.json diff --git a/ApiGateway/CustomLogic.cs b/ApiGateway/CustomLogic.cs index 6dca65d..d1939c9 100644 --- a/ApiGateway/CustomLogic.cs +++ b/ApiGateway/CustomLogic.cs @@ -26,7 +26,10 @@ namespace ApiGateway // Excepcion para login, no requiere token if (String.Equals(calledUrl, "/Ext/Login") || - String.Equals(calledUrl, "/Auth/Login")) + String.Equals(calledUrl, "/Auth/Login") || + String.Equals(calledUrl, "/Auth/Proveedor") || + String.Equals(calledUrl, "/Email") + ) return true; diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 36a4778..7c05e64 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -58,30 +58,42 @@ "Url": "http://localhost:8199/swagger/v1/swagger.json" } ] + }, + + { + "Key": "Email", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "Email", + "Version": "1.0", + "Url": "http://localhost:8170/swagger/v1/swagger.json" + } + ] + }, + + { + "Key": "MsContratos", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsContratos", + "Version": "1.0", + "Url": "http://localhost:8149/swagger/v1/swagger.json" + } + ] } - //{ - // "Key": "MsContratos", - // "TransformByOcelotConfig": true, - // "Config": [ - // { - // "Name": "MsContratos", - // "Version": "1.0", - // "Url": "http://localhost:5102/swagger/v1/swagger.json" - // } - // ] - //}, - - //{ - // "Key": "apitest", - // "TransformByOcelotConfig": true, - // "Config": [ - // { - // "Name": "ApiTest", - // "Version": "1.0", - // "Url": "http://localhost:5041/swagger/v1/swagger.json" - // } - // ] + //{ + // "Key": "apitest", + // "TransformByOcelotConfig": true, + // "Config": [ + // { + // "Name": "ApiTest", + // "Version": "1.0", + // "Url": "http://localhost:5041/swagger/v1/swagger.json" + // } + // ] ] diff --git a/ApiGateway/Routes/ocelot.adminusuarios.json b/ApiGateway/Routes/ocelot.adminusuarios.json index d6b2598..a8e1856 100644 --- a/ApiGateway/Routes/ocelot.adminusuarios.json +++ b/ApiGateway/Routes/ocelot.adminusuarios.json @@ -21,6 +21,26 @@ } }, + { + "SwaggerKey": "MsAdminUsuarios", + + "UpstreamPathTemplate": "/Auth/Proveedor", + "UpstreamHttpMethod": [ "POST" ], + + "DownstreamPathTemplate": "/Auth/Proveedor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8151 + } + ], + + "RouteClaimsRequirement": { + "permisos": "any" + } + }, + diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index 61277fc..84f8c2f 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -170,10 +170,28 @@ } }, + { + "SwaggerKey": "Afiliados", + "UpstreamPathTemplate": "/Afiliados", + "UpstreamHttpMethod": [ "Patch" ], + + "DownstreamPathTemplate": "/Afiliados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + } + }, + { "SwaggerKey": "Afiliados", - "UpstreamPathTemplate": "/Afiliados/AfiliadosUsuario", + "UpstreamPathTemplate": "/Afiliados/GrupoFamiliar", "UpstreamHttpMethod": [ "Get" ], "DownstreamPathTemplate": "/Afiliados/AfiliadosUsuario", @@ -301,6 +319,51 @@ "RouteClaimsRequirement": { "permisos": "any" } - } + }, + + + + { + "SwaggerKey": "Afiliados", + "UpstreamPathTemplate": "/Archivos/Afiliado", + "UpstreamHttpMethod": [ "GET" ], + + "DownstreamPathTemplate": "/Archivos/ArchivosUsuario", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + } + }, + + { + "SwaggerKey": "Afiliados", + "UpstreamPathTemplate": "/Declaratorias/Afiliado", + "UpstreamHttpMethod": [ "GET" ], + + "DownstreamPathTemplate": "/DeclaratoriasPorAfiliado/DeclaratoriasUsuario", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + } + }, + + + + + + + ] } diff --git a/ApiGateway/Routes/ocelot.contratos.json b/ApiGateway/Routes/ocelot.contratos.json index 353ef2a..8096ed9 100644 --- a/ApiGateway/Routes/ocelot.contratos.json +++ b/ApiGateway/Routes/ocelot.contratos.json @@ -2,44 +2,1407 @@ "Routes": [ { "SwaggerKey": "MsContratos", - //Incoming - "UpstreamPathTemplate": "/Contratos", - "UpstreamHttpMethod": [ "GET", "POST" ], - - //Routed + "UpstreamPathTemplate": "/AdminPlanesArrayDto", + "DownstreamPathTemplate": "/AdminPlanesArrayDto", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 5102 + "Port": 8149 } ], - "DownstreamPathTemplate": "/api/Contratos" - //"AuthenticationOptions": { - // //"AuthenticationProviderKey": "Bearer", - // "AllowedScopes": [ "0kmmpshnyd.execute-api.us-east-2.amazonaws.com/" ] // Ejemplo: "api.portfolio.manager.v1" - //} + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] }, { "SwaggerKey": "MsContratos", - //Incoming - "UpstreamPathTemplate": "/Contratos/asdasd/potato", - "UpstreamHttpMethod": [ "GET", "POST" ], - - //Routed + "UpstreamPathTemplate": "/AdminPlanesArrayDto", + "DownstreamPathTemplate": "/AdminPlanesArrayDto", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", - "Port": 5102 + "Port": 8149 } ], - "DownstreamPathTemplate": "/api/Contratos" - //"AuthenticationOptions": { - // //"AuthenticationProviderKey": "Bearer", - // "AllowedScopes": [ "0kmmpshnyd.execute-api.us-east-2.amazonaws.com/" ] // Ejemplo: "api.portfolio.manager.v1" - //} + "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", + "DownstreamPathTemplate": "/BloqueoCAPCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/BloqueoCAPCTT", + "DownstreamPathTemplate": "/BloqueoCAPCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/BloqueoCAPCTT", + "DownstreamPathTemplate": "/BloqueoCAPCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamPathTemplate": "/CapacidadesContratadas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapCTTPorCTT/Eliminar", + "DownstreamPathTemplate": "/CapCTTPorCTT/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Contratos", + "DownstreamPathTemplate": "/Contratos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Contratos", + "DownstreamPathTemplate": "/Contratos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Contratos", + "DownstreamPathTemplate": "/Contratos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "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", + "DownstreamPathTemplate": "/Contratos/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Contratos/Desbloquear", + "DownstreamPathTemplate": "/Contratos/Desbloquear", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ContratosTarifas", + "DownstreamPathTemplate": "/ContratosTarifas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ContratosTarifas", + "DownstreamPathTemplate": "/ContratosTarifas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ContratosTarifas", + "DownstreamPathTemplate": "/ContratosTarifas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Convenios", + "DownstreamPathTemplate": "/Convenios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Convenios", + "DownstreamPathTemplate": "/Convenios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Convenios/Eliminar", + "DownstreamPathTemplate": "/Convenios/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups", + "DownstreamPathTemplate": "/Cups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups", + "DownstreamPathTemplate": "/Cups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups", + "DownstreamPathTemplate": "/Cups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups/Eliminar", + "DownstreamPathTemplate": "/Cups/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EAPBS", + "DownstreamPathTemplate": "/EAPBS", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EAPBS", + "DownstreamPathTemplate": "/EAPBS", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EAPBS", + "DownstreamPathTemplate": "/EAPBS", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EAPBS/Eliminar", + "DownstreamPathTemplate": "/EAPBS/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Entidades", + "DownstreamPathTemplate": "/Entidades", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Entidades", + "DownstreamPathTemplate": "/Entidades", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamPathTemplate": "/EscalasSocioeconomicas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/EscalasSocioeconomicas/Eliminar", + "DownstreamPathTemplate": "/EscalasSocioeconomicas/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/GruposCups", + "DownstreamPathTemplate": "/GruposCups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/GruposCups", + "DownstreamPathTemplate": "/GruposCups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/GruposCups", + "DownstreamPathTemplate": "/GruposCups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Medicamentos", + "DownstreamPathTemplate": "/Medicamentos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Medicamentos", + "DownstreamPathTemplate": "/Medicamentos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Medicamentos", + "DownstreamPathTemplate": "/Medicamentos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/NovedadesContrato", + "DownstreamPathTemplate": "/NovedadesContrato", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/NovedadesContrato", + "DownstreamPathTemplate": "/NovedadesContrato", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Planes", + "DownstreamPathTemplate": "/Planes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Planes", + "DownstreamPathTemplate": "/Planes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Planes", + "DownstreamPathTemplate": "/Planes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Planes/Eliminar", + "DownstreamPathTemplate": "/Planes/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanPorCUPMDT", + "DownstreamPathTemplate": "/PlanPorCUPMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanPorCUPMDT", + "DownstreamPathTemplate": "/PlanPorCUPMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Proveedores", + "DownstreamPathTemplate": "/Proveedores", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Proveedores", + "DownstreamPathTemplate": "/Proveedores", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Proveedores", + "DownstreamPathTemplate": "/Proveedores", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Proveedores/Eliminar", + "DownstreamPathTemplate": "/Proveedores/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedePorContrato", + "DownstreamPathTemplate": "/SedePorContrato", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedePorContrato", + "DownstreamPathTemplate": "/SedePorContrato", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedesProveedor", + "DownstreamPathTemplate": "/SedesProveedor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedesProveedor", + "DownstreamPathTemplate": "/SedesProveedor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedesProveedor", + "DownstreamPathTemplate": "/SedesProveedor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/SedesProveedor/Eliminar", + "DownstreamPathTemplate": "/SedesProveedor/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamPathTemplate": "/ServiciosHabilitados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosHabilitados/Eliminar", + "DownstreamPathTemplate": "/ServiciosHabilitados/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPrestador/GrupoCups", + "DownstreamPathTemplate": "/ServiciosPrestador/GrupoCups", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "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", + "DownstreamPathTemplate": "/TarifasBase", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase", + "DownstreamPathTemplate": "/TarifasBase", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase", + "DownstreamPathTemplate": "/TarifasBase", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase/Eliminar", + "DownstreamPathTemplate": "/TarifasBase/Eliminar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamPathTemplate": "/TarifasPorCUPMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorMDT", + "DownstreamPathTemplate": "/TarifasPorMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "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 new file mode 100644 index 0000000..2f43874 --- /dev/null +++ b/ApiGateway/Routes/ocelot.email.json @@ -0,0 +1,22 @@ +{ + "Routes": [ + + { + "SwaggerKey": "Email", + "UpstreamPathTemplate": "/Email", + "UpstreamHttpMethod": [ "POST" ], + + "DownstreamPathTemplate": "/api/Email", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8170 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + } + } + ] +}