diff --git a/api-reference-v2/api-reference/organization/organization--merchant-account--list.mdx b/api-reference-v2/api-reference/organization/organization--merchant-account--list.mdx index 4057e7e18e..58d467dc57 100644 --- a/api-reference-v2/api-reference/organization/organization--merchant-account--list.mdx +++ b/api-reference-v2/api-reference/organization/organization--merchant-account--list.mdx @@ -1,3 +1,3 @@ --- -openapi: get /v2/organization/{organization_id}/merchant_accounts +openapi: get /v2/organization/{id}/merchant_accounts --- \ No newline at end of file diff --git a/api-reference-v2/api-reference/organization/organization--retrieve.mdx b/api-reference-v2/api-reference/organization/organization--retrieve.mdx index 5cd3175b04..ba06f4cfb6 100644 --- a/api-reference-v2/api-reference/organization/organization--retrieve.mdx +++ b/api-reference-v2/api-reference/organization/organization--retrieve.mdx @@ -1,3 +1,3 @@ --- -openapi: get /v2/organization/{organization_id} +openapi: get /v2/organization/{id} --- \ No newline at end of file diff --git a/api-reference-v2/api-reference/organization/organization--update.mdx b/api-reference-v2/api-reference/organization/organization--update.mdx index 1ac924b71b..c365eb093f 100644 --- a/api-reference-v2/api-reference/organization/organization--update.mdx +++ b/api-reference-v2/api-reference/organization/organization--update.mdx @@ -1,3 +1,3 @@ --- -openapi: put /v2/organization/{organization_id} +openapi: put /v2/organization/{id} --- \ No newline at end of file diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index f96ca1dc59..0d3959ce0c 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -67,7 +67,7 @@ ] } }, - "/v2/organization/{organization_id}": { + "/v2/organization/{id}": { "get": { "tags": [ "Organization" @@ -77,7 +77,7 @@ "operationId": "Retrieve an Organization", "parameters": [ { - "name": "organization_id", + "name": "id", "in": "path", "description": "The unique identifier for the Organization", "required": true, @@ -116,7 +116,7 @@ "operationId": "Update an Organization", "parameters": [ { - "name": "organization_id", + "name": "id", "in": "path", "description": "The unique identifier for the Organization", "required": true, @@ -164,7 +164,7 @@ ] } }, - "/v2/organization/{organization_id}/merchant_accounts": { + "/v2/organization/{id}/merchant_accounts": { "get": { "tags": [ "Organization" @@ -174,7 +174,7 @@ "operationId": "List Merchant Accounts", "parameters": [ { - "name": "organization_id", + "name": "id", "in": "path", "description": "The unique identifier for the Organization", "required": true, diff --git a/api-reference/api-reference/organization/organization--retrieve.mdx b/api-reference/api-reference/organization/organization--retrieve.mdx index 8495797dcc..d5cd76a472 100644 --- a/api-reference/api-reference/organization/organization--retrieve.mdx +++ b/api-reference/api-reference/organization/organization--retrieve.mdx @@ -1,3 +1,3 @@ --- -openapi: get /organization/{organization_id} +openapi: get /organization/{id} --- \ No newline at end of file diff --git a/api-reference/api-reference/organization/organization--update.mdx b/api-reference/api-reference/organization/organization--update.mdx index 202020c7ca..e51cc56907 100644 --- a/api-reference/api-reference/organization/organization--update.mdx +++ b/api-reference/api-reference/organization/organization--update.mdx @@ -1,3 +1,3 @@ --- -openapi: put /organization/{organization_id} +openapi: put /organization/{id} --- \ No newline at end of file diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json index 613eff4b2a..d0e6c6ad0a 100644 --- a/api-reference/openapi_spec.json +++ b/api-reference/openapi_spec.json @@ -1156,7 +1156,7 @@ ] } }, - "/organization/{organization_id}": { + "/organization/{id}": { "get": { "tags": [ "Organization" @@ -1166,7 +1166,7 @@ "operationId": "Retrieve an Organization", "parameters": [ { - "name": "organization_id", + "name": "id", "in": "path", "description": "The unique identifier for the Organization", "required": true, @@ -1205,7 +1205,7 @@ "operationId": "Update an Organization", "parameters": [ { - "name": "organization_id", + "name": "id", "in": "path", "description": "The unique identifier for the Organization", "required": true, diff --git a/crates/openapi/src/routes/organization.rs b/crates/openapi/src/routes/organization.rs index 08ee56725e..ce3199343c 100644 --- a/crates/openapi/src/routes/organization.rs +++ b/crates/openapi/src/routes/organization.rs @@ -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), (status = 400, description = "Invalid data")