mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +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": {
|
"/v2/refunds/list": {
|
||||||
"get": {
|
"post": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"Refunds"
|
"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
|
/// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided
|
||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
get,
|
post,
|
||||||
path = "/v2/refunds/list",
|
path = "/v2/refunds/list",
|
||||||
request_body=RefundListRequest,
|
request_body=RefundListRequest,
|
||||||
responses(
|
responses(
|
||||||
|
|||||||
@ -1215,7 +1215,7 @@ impl Refunds {
|
|||||||
#[cfg(feature = "olap")]
|
#[cfg(feature = "olap")]
|
||||||
{
|
{
|
||||||
route =
|
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")]
|
#[cfg(feature = "oltp")]
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user