diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json index 5f12cbb1b2..ecd245ac3b 100644 --- a/api-reference/v1/openapi_spec_v1.json +++ b/api-reference/v1/openapi_spec_v1.json @@ -13157,6 +13157,11 @@ "type": "string", "description": "The description of the connector" }, + "base_url": { + "type": "string", + "description": "The base url of the connector", + "nullable": true + }, "category": { "$ref": "#/components/schemas/HyperswitchConnectorCategory" }, diff --git a/crates/api_models/src/feature_matrix.rs b/crates/api_models/src/feature_matrix.rs index 0349e05f36..05f57793e6 100644 --- a/crates/api_models/src/feature_matrix.rs +++ b/crates/api_models/src/feature_matrix.rs @@ -68,6 +68,8 @@ pub struct ConnectorFeatureMatrixResponse { pub display_name: String, /// The description of the connector pub description: String, + /// The base url of the connector + pub base_url: Option, /// The category of the connector #[schema(value_type = HyperswitchConnectorCategory, example = "payment_gateway")] pub category: common_enums::HyperswitchConnectorCategory, diff --git a/crates/router/src/routes/feature_matrix.rs b/crates/router/src/routes/feature_matrix.rs index 9e23f95041..5a9322127e 100644 --- a/crates/router/src/routes/feature_matrix.rs +++ b/crates/router/src/routes/feature_matrix.rs @@ -4,7 +4,7 @@ use common_enums::enums; use hyperswitch_domain_models::{ api::ApplicationResponse, router_response_types::PaymentMethodTypeMetadata, }; -use hyperswitch_interfaces::api::ConnectorSpecifications; +use hyperswitch_interfaces::api::{ConnectorSpecifications, ConnectorCommon}; use router_env::{instrument, tracing, Flow}; use strum::IntoEnumIterator; @@ -102,6 +102,7 @@ fn build_connector_feature_details( name: connector_name.to_uppercase(), display_name: connector_about.display_name.to_string(), description: connector_about.description.to_string(), + base_url: Some(connector.base_url(&state.conf.connectors).to_string()), integration_status: connector_about.integration_status, category: connector_about.connector_type, supported_webhook_flows,