fix(openapi): update create_platform endpoint in api-reference docs (#8782)

This commit is contained in:
Sandeep Kumar
2025-07-30 12:14:18 +05:30
committed by GitHub
parent f5684a91dd
commit 8dc4061f9e
3 changed files with 37 additions and 5 deletions

View File

@ -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",