mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
refactor(refunds_v2): Change refunds v2 list request verb from GET to POST (#8289)
This commit is contained in:
@ -3365,7 +3365,7 @@
|
||||
}
|
||||
},
|
||||
"/v2/refunds/list": {
|
||||
"get": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Refunds"
|
||||
],
|
||||
|
||||
@ -272,7 +272,7 @@ pub async fn refunds_retrieve() {}
|
||||
///
|
||||
/// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided
|
||||
#[utoipa::path(
|
||||
get,
|
||||
post,
|
||||
path = "/v2/refunds/list",
|
||||
request_body=RefundListRequest,
|
||||
responses(
|
||||
|
||||
@ -1215,7 +1215,7 @@ impl Refunds {
|
||||
#[cfg(feature = "olap")]
|
||||
{
|
||||
route =
|
||||
route.service(web::resource("/list").route(web::get().to(refunds::refunds_list)));
|
||||
route.service(web::resource("/list").route(web::post().to(refunds::refunds_list)));
|
||||
}
|
||||
#[cfg(feature = "oltp")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user