From e5772d3724fda1e956f6221346d467b976e5f74b Mon Sep 17 00:00:00 2001 From: Haizhou Zhao Date: Tue, 28 Mar 2023 10:46:07 -0700 Subject: [PATCH 1/2] [Rest Catalog Spec] Return 204 on no content response --- open-api/rest-catalog-open-api.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml index a474d7c49f0e..1e95ce9ee10c 100644 --- a/open-api/rest-catalog-open-api.yaml +++ b/open-api/rest-catalog-open-api.yaml @@ -725,7 +725,7 @@ paths: description: Check if a table exists within a given namespace. This request does not return a response body. responses: - 200: + 204: description: OK - Table Exists 400: description: Bad Request @@ -763,7 +763,7 @@ paths: $ref: '#/components/examples/RenameTableSameNamespace' required: true responses: - 200: + 204: description: OK 400: $ref: '#/components/responses/BadRequestErrorResponse' From 1680c956d260ea5e1b8e5706a8f62ac3c7d185f5 Mon Sep 17 00:00:00 2001 From: Haizhou Zhao Date: Wed, 12 Apr 2023 12:03:35 -0700 Subject: [PATCH 2/2] Edit description --- open-api/rest-catalog-open-api.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml index 1e95ce9ee10c..1c659e5d3d3a 100644 --- a/open-api/rest-catalog-open-api.yaml +++ b/open-api/rest-catalog-open-api.yaml @@ -726,7 +726,7 @@ paths: Check if a table exists within a given namespace. This request does not return a response body. responses: 204: - description: OK - Table Exists + description: Success, no content 400: description: Bad Request 401: @@ -764,7 +764,7 @@ paths: required: true responses: 204: - description: OK + description: Success, no content 400: $ref: '#/components/responses/BadRequestErrorResponse' 401: