mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
chore: updated open api spec documentation for create platform account (#8692)
Co-authored-by: Gitanjli Chopra <gitanjli.chopra@Gitanjli-Chopra-DC62KJQFX6.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com>
This commit is contained in:
@ -213,6 +213,9 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
|
||||
// Routes for authentication
|
||||
routes::authentication::authentication_create,
|
||||
|
||||
// Routes for platform account
|
||||
routes::platform::create_platform_account,
|
||||
),
|
||||
components(schemas(
|
||||
common_utils::types::MinorUnit,
|
||||
@ -362,8 +365,8 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::enums::MerchantProductType,
|
||||
api_models::enums::CtpServiceProvider,
|
||||
api_models::enums::PaymentLinkSdkLabelType,
|
||||
api_models::enums::PaymentLinkShowSdkTerms,
|
||||
api_models::enums::OrganizationType,
|
||||
api_models::enums::PaymentLinkShowSdkTerms,
|
||||
api_models::admin::MerchantConnectorCreate,
|
||||
api_models::admin::AdditionalMerchantData,
|
||||
api_models::admin::ConnectorWalletDetails,
|
||||
@ -806,6 +809,8 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::authentication::ThreeDsData,
|
||||
api_models::authentication::AuthenticationEligibilityRequest,
|
||||
api_models::authentication::AuthenticationEligibilityResponse,
|
||||
api_models::user::PlatformAccountCreateRequest,
|
||||
api_models::user::PlatformAccountCreateResponse,
|
||||
)),
|
||||
modifiers(&SecurityAddon)
|
||||
)]
|
||||
|
||||
@ -14,6 +14,7 @@ pub mod payment_link;
|
||||
pub mod payment_method;
|
||||
pub mod payments;
|
||||
pub mod payouts;
|
||||
pub mod platform;
|
||||
pub mod poll;
|
||||
pub mod profile;
|
||||
pub mod profile_acquirer;
|
||||
|
||||
26
crates/openapi/src/routes/platform.rs
Normal file
26
crates/openapi/src/routes/platform.rs
Normal file
@ -0,0 +1,26 @@
|
||||
#[cfg(feature = "v1")]
|
||||
/// Platform - Create
|
||||
///
|
||||
/// Create a new platform account
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/create_platform",
|
||||
request_body(
|
||||
content = PlatformAccountCreateRequest,
|
||||
examples(
|
||||
(
|
||||
"Create a platform account with organization_name" = (
|
||||
value = json!({"organization_name": "organization_abc"})
|
||||
)
|
||||
),
|
||||
)
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Platform Account Created", body = PlatformAccountCreateResponse),
|
||||
(status = 400, description = "Invalid data")
|
||||
),
|
||||
tag = "Platform",
|
||||
operation_id = "Create a Platform Account",
|
||||
security(("jwt_key" = []))
|
||||
)]
|
||||
pub async fn create_platform_account() {}
|
||||
Reference in New Issue
Block a user