Skip to content

Commit

Permalink
fix: Remove deprecated spontaneous payment api definition (#2671)
Browse files Browse the repository at this point in the history
removed deprecated spontaneous payment api

Co-authored-by: pasqualespica <[email protected]>
Co-authored-by: Pasquale Spica <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 626f0f0 commit 21d602c
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions src/domains/gps-app/04_apim_gps.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,58 +19,3 @@ module "apim_gps_product" {

policy_xml = file("./api_product/_base_policy_no_forbid.xml")
}

#################
## API GPS ##
#################

#################
# Depreacted ⚠️⚠️⚠️⚠️⚠️⚠️⚠️ see here https://github.com/pagopa/pagopa-spontaneous-payments/blob/378d08505a12e1dbd83d69c2ea987a2a3ee475a1/infra/04_apim_api.tf#L4
#################

locals {
apim_spontaneous_payments_service_api = {
display_name = "GPS pagoPA - spontaneous payments service API"
description = "API to support spontaneous payments service"
path = "gps/spontaneous-payments-service"
subscription_required = false
service_url = null
}
}

resource "azurerm_api_management_api_version_set" "api_gps_api" {

name = format("%s-spontaneous-payments-service-api", var.env_short)
resource_group_name = local.pagopa_apim_rg
api_management_name = local.pagopa_apim_name
display_name = local.apim_spontaneous_payments_service_api.display_name
versioning_scheme = "Segment"
}


module "apim_api_gps_api_v1" {
source = "./.terraform/modules/__v3__/api_management_api"

name = format("%s-spontaneous-payments-service-api", local.project)
api_management_name = local.pagopa_apim_name
resource_group_name = local.pagopa_apim_rg
product_ids = [module.apim_gps_product.product_id]
subscription_required = local.apim_spontaneous_payments_service_api.subscription_required
version_set_id = azurerm_api_management_api_version_set.api_gps_api.id
api_version = "v1"

description = local.apim_spontaneous_payments_service_api.description
display_name = local.apim_spontaneous_payments_service_api.display_name
path = local.apim_spontaneous_payments_service_api.path
protocols = ["https"]
service_url = local.apim_spontaneous_payments_service_api.service_url

content_format = "openapi"
content_value = templatefile("./api/spontaneous-payments-service/v1/_openapi.json.tpl", {
host = local.apim_hostname
})

xml_content = templatefile("./api/spontaneous-payments-service/v1/_base_policy.xml", {
hostname = local.gps_hostname
})
}

0 comments on commit 21d602c

Please sign in to comment.