docs: change organization_id to id in organization endpoints (#6218)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2024-10-04 18:53:54 +05:30
committed by GitHub
parent caa0693148
commit 939483cebe
8 changed files with 23 additions and 23 deletions

View File

@ -31,8 +31,8 @@ pub async fn organization_create() {}
/// Retrieve an existing organization
#[utoipa::path(
get,
path = "/organization/{organization_id}",
params (("organization_id" = String, Path, description = "The unique identifier for the Organization")),
path = "/organization/{id}",
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Organization Created", body =OrganizationResponse),
(status = 400, description = "Invalid data")
@ -49,7 +49,7 @@ pub async fn organization_retrieve() {}
/// Create a new organization for .
#[utoipa::path(
put,
path = "/organization/{organization_id}",
path = "/organization/{id}",
request_body(
content = OrganizationUpdateRequest,
examples(
@ -60,7 +60,7 @@ pub async fn organization_retrieve() {}
),
)
),
params (("organization_id" = String, Path, description = "The unique identifier for the Organization")),
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Organization Created", body =OrganizationResponse),
(status = 400, description = "Invalid data")
@ -104,8 +104,8 @@ pub async fn organization_create() {}
/// Retrieve an existing organization
#[utoipa::path(
get,
path = "/v2/organization/{organization_id}",
params (("organization_id" = String, Path, description = "The unique identifier for the Organization")),
path = "/v2/organization/{id}",
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Organization Created", body =OrganizationResponse),
(status = 400, description = "Invalid data")
@ -122,7 +122,7 @@ pub async fn organization_retrieve() {}
/// Create a new organization for .
#[utoipa::path(
put,
path = "/v2/organization/{organization_id}",
path = "/v2/organization/{id}",
request_body(
content = OrganizationUpdateRequest,
examples(
@ -133,7 +133,7 @@ pub async fn organization_retrieve() {}
),
)
),
params (("organization_id" = String, Path, description = "The unique identifier for the Organization")),
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Organization Created", body =OrganizationResponse),
(status = 400, description = "Invalid data")
@ -150,8 +150,8 @@ pub async fn organization_update() {}
/// List merchant accounts for an Organization
#[utoipa::path(
get,
path = "/v2/organization/{organization_id}/merchant_accounts",
params (("organization_id" = String, Path, description = "The unique identifier for the Organization")),
path = "/v2/organization/{id}/merchant_accounts",
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Merchant Account list retrieved successfully", body = Vec<MerchantAccountResponse>),
(status = 400, description = "Invalid data")