mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor: update v2 resource update endpoints to use PUT method instead of POST (#5657)
This commit is contained in:
@ -119,7 +119,7 @@ pub async fn business_profile_update() {}
|
||||
///
|
||||
/// Update the *business profile*
|
||||
#[utoipa::path(
|
||||
post,
|
||||
put,
|
||||
path = "/v2/profiles/{profile_id}",
|
||||
params(
|
||||
("profile_id" = String, Path, description = "The unique identifier for the business profile")
|
||||
|
||||
@ -185,7 +185,7 @@ pub async fn update_merchant_account() {}
|
||||
///
|
||||
/// Updates details of an existing merchant account. Helpful in updating merchant details such as email, contact details, or other configuration details like webhook, routing algorithm etc
|
||||
#[utoipa::path(
|
||||
post,
|
||||
put,
|
||||
path = "/v2/accounts/{id}",
|
||||
request_body (
|
||||
content = MerchantAccountUpdate,
|
||||
|
||||
@ -240,7 +240,7 @@ pub async fn connector_update() {}
|
||||
/// To update an existing Merchant Connector account. Helpful in enabling/disabling different payment methods and other settings for the connector
|
||||
#[cfg(feature = "v2")]
|
||||
#[utoipa::path(
|
||||
post,
|
||||
put,
|
||||
path = "/v2/connector_accounts/{id}",
|
||||
request_body(
|
||||
content = MerchantConnectorUpdate,
|
||||
|
||||
Reference in New Issue
Block a user