docs: api-reference changes for customers and admin list apis for v2 (#5936)

This commit is contained in:
Sai Harsha Vardhan
2024-09-18 15:58:39 +05:30
committed by GitHub
parent 99f5933894
commit ed13146b80
16 changed files with 51 additions and 12 deletions

View File

@ -93,7 +93,7 @@ pub async fn customers_delete() {}
///
/// Lists all the customers for a particular merchant id.
#[utoipa::path(
post,
get,
path = "/customers/list",
responses(
(status = 200, description = "Customers retrieved", body = Vec<CustomerResponse>),
@ -106,6 +106,8 @@ pub async fn customers_delete() {}
#[cfg(feature = "v1")]
pub async fn customers_list() {}
/// Customers - Create
///
/// Creates a customer object and stores the customer details to be reused for future payments.
/// Incase the customer already exists in the system, this API will respond with the customer details.
#[utoipa::path(
@ -199,7 +201,7 @@ pub async fn customers_delete() {}
///
/// Lists all the customers for a particular merchant id.
#[utoipa::path(
post,
get,
path = "/v2/customers/list",
responses(
(status = 200, description = "Customers retrieved", body = Vec<CustomerResponse>),