Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor(openapi): update authentication for profiles and mca openapi (#7678)

Sandeep Kumar7358b3a3b99c
diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json
index bbfd1adc85..04d598543a 100644
--- a/api-reference/openapi_spec.json
+++ b/api-reference/openapi_spec.json
@@ -1760,7 +1760,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
@@ -1805,7 +1805,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
}
@@ -1859,7 +1859,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
@@ -1940,7 +1940,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
@@ -3122,7 +3122,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
@@ -3211,7 +3211,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
@@ -3276,7 +3276,7 @@
},
"security": [
{
- "admin_api_key": []
+ "api_key": []
}
]
},
diff --git a/crates/openapi/src/routes/merchant_connector_account.rs b/crates/openapi/src/routes/merchant_connector_account.rs
index 372f8688a2..9a205abb1a 100644
--- a/crates/openapi/src/routes/merchant_connector_account.rs
+++ b/crates/openapi/src/routes/merchant_connector_account.rs
@@ -57,7 +57,7 @@
),
tag = "Merchant Connector Account",
operation_id = "Create a Merchant Connector",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn connector_create() {}
@@ -142,7 +142,7 @@ pub async fn connector_create() {}
),
tag = "Merchant Connector Account",
operation_id = "Retrieve a Merchant Connector",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn connector_retrieve() {}
@@ -183,7 +183,7 @@ pub async fn connector_retrieve() {}
),
tag = "Merchant Connector Account",
operation_id = "List all Merchant Connectors",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn connector_list() {}
@@ -231,7 +231,7 @@ pub async fn connector_list() {}
),
tag = "Merchant Connector Account",
operation_id = "Update a Merchant Connector",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn connector_update() {}
diff --git a/crates/openapi/src/routes/profile.rs b/crates/openapi/src/routes/profile.rs
index cc484aa3f9..2b72375f98 100644
--- a/crates/openapi/src/routes/profile.rs
+++ b/crates/openapi/src/routes/profile.rs
@@ -33,7 +33,7 @@
),
tag = "Profile",
operation_id = "Create A Profile",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn profile_create() {}
@@ -65,7 +65,7 @@ pub async fn profile_create() {}
),
tag = "Profile",
operation_id = "Update a Profile",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn profile_update() {}
@@ -86,7 +86,7 @@ pub async fn profile_update() {}
),
tag = "Profile",
operation_id = "Retrieve a Profile",
- security(("admin_api_key" = []))
+ security(("api_key" = []))
)]
pub async fn profile_retrieve() {}