Skip to content

Commit c8a6464

Browse files
[core] RestCatalog: add getCatalogById in rest yaml (#5362)
1 parent 1f55fc6 commit c8a6464

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

paimon-open-api/rest-management-api.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,42 @@ paths:
186186
$ref: '#/components/schemas/ErrorResponse'
187187
"500":
188188
description: Internal Server Error
189+
/v1/catalogs/id/{id}:
190+
get:
191+
tags:
192+
- Catalogs
193+
operationId: getCatalogById
194+
summary: Get a catalog by id
195+
description: |
196+
Gets the specified catalog.
197+
parameters:
198+
- name: id
199+
in: path
200+
description: The id of the catalog.
201+
required: true
202+
schema:
203+
type: string
204+
responses:
205+
"200":
206+
description: The catalog was successfully retrieved.
207+
content:
208+
application/json:
209+
schema:
210+
$ref: '#/components/schemas/GetCatalogResponse'
211+
"401":
212+
description: Unauthorized
213+
content:
214+
application/json:
215+
schema:
216+
$ref: '#/components/schemas/ErrorResponse'
217+
"404":
218+
description: Resource not found
219+
content:
220+
application/json:
221+
schema:
222+
$ref: '#/components/schemas/ErrorResponse'
223+
"500":
224+
description: Internal Server Error
189225
components:
190226
schemas:
191227
CreateCatalogRequest:

0 commit comments

Comments
 (0)