From faaa7f254a083aaf6ae27c048fe11b32b065c808 Mon Sep 17 00:00:00 2001 From: Giulia Tremolada <124147597+giulia-tremolada@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:30:05 +0100 Subject: [PATCH] [SELC-5648] fix: add productId filter in getInstitutions API (#509) --- infra/apim_v2/api/ms_external_api/v2/openapi.dev.json | 10 ++++++++++ infra/apim_v2/api/ms_external_api/v2/openapi.prod.json | 10 ++++++++++ infra/apim_v2/api/ms_external_api/v2/openapi.uat.json | 10 ++++++++++ infra/apim_v2/apim.tf | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/infra/apim_v2/api/ms_external_api/v2/openapi.dev.json b/infra/apim_v2/api/ms_external_api/v2/openapi.dev.json index 36ba251c..b7b1a911 100644 --- a/infra/apim_v2/api/ms_external_api/v2/openapi.dev.json +++ b/infra/apim_v2/api/ms_external_api/v2/openapi.dev.json @@ -222,6 +222,16 @@ "schema": { "type": "string" } + }, + { + "name": "productId", + "in": "query", + "description": "productId", + "required": false, + "style": "form", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/infra/apim_v2/api/ms_external_api/v2/openapi.prod.json b/infra/apim_v2/api/ms_external_api/v2/openapi.prod.json index d2c63eed..0ac67fd6 100644 --- a/infra/apim_v2/api/ms_external_api/v2/openapi.prod.json +++ b/infra/apim_v2/api/ms_external_api/v2/openapi.prod.json @@ -222,6 +222,16 @@ "schema": { "type": "string" } + }, + { + "name": "productId", + "in": "query", + "description": "productId", + "required": false, + "style": "form", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/infra/apim_v2/api/ms_external_api/v2/openapi.uat.json b/infra/apim_v2/api/ms_external_api/v2/openapi.uat.json index d2c63eed..0ac67fd6 100644 --- a/infra/apim_v2/api/ms_external_api/v2/openapi.uat.json +++ b/infra/apim_v2/api/ms_external_api/v2/openapi.uat.json @@ -222,6 +222,16 @@ "schema": { "type": "string" } + }, + { + "name": "productId", + "in": "query", + "description": "productId", + "required": false, + "style": "form", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/infra/apim_v2/apim.tf b/infra/apim_v2/apim.tf index 16fb8fe6..eadd7b18 100644 --- a/infra/apim_v2/apim.tf +++ b/infra/apim_v2/apim.tf @@ -378,7 +378,7 @@ module "apim_external_api_ms_v2" { }, { operation_id = "getInstitutionsUsingGET" - xml_content = templatefile("./api/base_ms_url_external_policy.xml.tpl", { + xml_content = templatefile("./api/base_ms_url_external_product_policy.xml.tpl", { MS_BACKEND_URL = "https://selc-${var.env_short}-ms-core-ca.${var.ca_suffix_dns_private_name}/" TENANT_ID = data.azurerm_client_config.current.tenant_id EXTERNAL-OAUTH2-ISSUER = data.azurerm_key_vault_secret.external-oauth2-issuer.value