mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix(openapi): update create_platform endpoint in api-reference docs (#8782)
This commit is contained in:
@ -4,19 +4,38 @@
|
||||
/// Create a new platform account
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/create_platform",
|
||||
path = "/user/create_platform",
|
||||
request_body(
|
||||
content = PlatformAccountCreateRequest,
|
||||
description = "Create a platform account with organization_name",
|
||||
examples(
|
||||
(
|
||||
"Create a platform account with organization_name" = (
|
||||
value = json!({"organization_name": "organization_abc"})
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Platform Account Created", body = PlatformAccountCreateResponse),
|
||||
(
|
||||
status = 200,
|
||||
description = "Platform Account Created",
|
||||
body = PlatformAccountCreateResponse,
|
||||
examples(
|
||||
(
|
||||
"Successful Platform Account Creation" = (
|
||||
description = "Return values for a successfully created platform account",
|
||||
value = json!({
|
||||
"org_id": "org_abc",
|
||||
"org_name": "organization_abc",
|
||||
"org_type": "platform",
|
||||
"merchant_id": "merchant_abc",
|
||||
"merchant_account_type": "platform"
|
||||
})
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
(status = 400, description = "Invalid data")
|
||||
),
|
||||
tag = "Platform",
|
||||
|
||||
Reference in New Issue
Block a user