refactor: update v2 resource update endpoints to use PUT method instead of POST (#5657)

This commit is contained in:
Sanchith Hegde
2024-08-22 14:09:39 +05:30
committed by GitHub
parent ca72fedae8
commit 7f10678c36
8 changed files with 12 additions and 12 deletions

View File

@ -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")

View File

@ -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,

View File

@ -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,