You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/03/20 22:20:18 UTC
[iceberg] branch master updated: Core: Update DELETE routes to use 204 for success (#4366)
This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 0f3e7c7 Core: Update DELETE routes to use 204 for success (#4366)
0f3e7c7 is described below
commit 0f3e7c7badf47bd0e2178591082886cd47d94a1b
Author: Ryan Blue <bl...@apache.org>
AuthorDate: Sun Mar 20 15:20:05 2022 -0700
Core: Update DELETE routes to use 204 for success (#4366)
---
open-api/rest-catalog-open-api.yaml | 40 ++++---------------------------------
1 file changed, 4 insertions(+), 36 deletions(-)
diff --git a/open-api/rest-catalog-open-api.yaml b/open-api/rest-catalog-open-api.yaml
index 6f95e61..480a730 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -234,8 +234,8 @@ paths:
summary: Drop a namespace from the catalog. Namespace must be empty.
operationId: dropNamespace
responses:
- 200:
- $ref: '#/components/responses/DropNamespaceResponse'
+ 204:
+ description: Success, no content
400:
$ref: '#/components/responses/BadRequestErrorResponse'
401:
@@ -502,8 +502,8 @@ paths:
type: boolean
default: false
responses:
- 200:
- $ref: '#/components/responses/DropTableResponse'
+ 204:
+ description: Success, no content
400:
$ref: '#/components/responses/BadRequestErrorResponse'
401:
@@ -1446,38 +1446,6 @@ components:
"properties": { "owner": "Ralph", "created_at": "1452120468" }
}
- DropTableResponse:
- description: A successful call to drop a table
- content:
- application/json:
- schema:
- type: object
- properties:
- dropped:
- type: boolean
- description: true if the table was found and removed from the catalog
- purged:
- type: boolean
- description: whether the underlying data was purged or is being purged
- example: {
- "dropped": true,
- "purged": false
- }
-
- DropNamespaceResponse:
- description: A successful call to drop a namespace
- content:
- application/json:
- schema:
- type: object
- properties:
- dropped:
- description: true if the namespace was dropped
- type: boolean
- example: {
- "dropped": true
- }
-
GetNamespaceResponse:
description:
Returns a namespace, as well as any properties stored on the namespace if namespace properties