This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new c8a6464d0b [core] RestCatalog: add getCatalogById in rest yaml (#5362)
c8a6464d0b is described below
commit c8a6464d0b00ad23af030c7ad549410e82283190
Author: XiaoHongbo <[email protected]>
AuthorDate: Thu Mar 27 21:04:29 2025 +0800
[core] RestCatalog: add getCatalogById in rest yaml (#5362)
---
paimon-open-api/rest-management-api.yaml | 36 ++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/paimon-open-api/rest-management-api.yaml
b/paimon-open-api/rest-management-api.yaml
index fa0a79e8b3..1c1e27c43a 100644
--- a/paimon-open-api/rest-management-api.yaml
+++ b/paimon-open-api/rest-management-api.yaml
@@ -186,6 +186,42 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
"500":
description: Internal Server Error
+ /v1/catalogs/id/{id}:
+ get:
+ tags:
+ - Catalogs
+ operationId: getCatalogById
+ summary: Get a catalog by id
+ description: |
+ Gets the specified catalog.
+ parameters:
+ - name: id
+ in: path
+ description: The id of the catalog.
+ required: true
+ schema:
+ type: string
+ responses:
+ "200":
+ description: The catalog was successfully retrieved.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GetCatalogResponse'
+ "401":
+ description: Unauthorized
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ "404":
+ description: Resource not found
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ "500":
+ description: Internal Server Error
components:
schemas:
CreateCatalogRequest: