JingsongLi commented on code in PR #5317: URL: https://github.com/apache/paimon/pull/5317#discussion_r2004772471
########## paimon-open-api/rest-catalog-open-api.yaml: ########## @@ -28,6 +28,151 @@ servers: - url: http://localhost:8080 description: Server URL in Development environment paths: + /v1/catalogs: + post: + tags: + - Catalogs + operationId: createCatalog + summary: Create a catalog + description: | + Creates a new catalog instance. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCatalogRequest' + responses: + '200': + description: The new catalog was successfully created. + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCatalogResponse' + "409": + description: Resource has exist + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + "500": + description: Internal Server Error + get: + tags: + - Catalogs + parameters: + - name: maxResults + in: query + description: | + Maximum number of catalogs to return. + - when set to a value greater than 0, the page length is the minimum of this value and a server configured value; + - when set to 0 or less than 0, the page length is set to a server configured value; + schema: + type: integer + format: int32 + maximum: 100 + required: false + - name: pageToken + in: query + description: | + Opaque pagination token to go to next page based on previous query. + schema: + type: string + required: false + operationId: listCatalogs + summary: List catalogs + description: | + Lists the available catalogs. + responses: + '200': + description: The catalog list was successfully retrieved. + content: + application/json: + schema: + $ref: '#/components/schemas/ListCatalogsResponse' + '500': + description: Internal Server Error + /v1/catalogs/{name}: Review Comment: catalog -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org