You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2018/05/21 03:37:10 UTC
[03/32] hbase git commit: HBASE-20581 Fix documentation about schema
updates
HBASE-20581 Fix documentation about schema updates
Signed-off-by: Balazs Meszaros <ba...@cloudera.com>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/f917f4e7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f917f4e7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f917f4e7
Branch: refs/heads/HBASE-19064
Commit: f917f4e7c8de2987bde42eccd14a901ad3ec9b27
Parents: dab0e90
Author: Josh Elser <el...@apache.org>
Authored: Mon May 14 13:44:40 2018 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Thu May 17 14:29:48 2018 -0400
----------------------------------------------------------------------
src/main/asciidoc/_chapters/external_apis.adoc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/f917f4e7/src/main/asciidoc/_chapters/external_apis.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/external_apis.adoc b/src/main/asciidoc/_chapters/external_apis.adoc
index ffb6ee6..c1299a6 100644
--- a/src/main/asciidoc/_chapters/external_apis.adoc
+++ b/src/main/asciidoc/_chapters/external_apis.adoc
@@ -186,20 +186,20 @@ creation or mutation, and `DELETE` for deletion.
|/_table_/schema
|POST
-|Create a new table, or replace an existing table's schema
+|Update an existing table with the provided schema fragment
|curl -vi -X POST \
-H "Accept: text/xml" \
-H "Content-Type: text/xml" \
- -d '<?xml version="1.0" encoding="UTF-8"?><TableSchema name="users"><ColumnSchema name="cf" /></TableSchema>' \
+ -d '<?xml version="1.0" encoding="UTF-8"?><TableSchema name="users"><ColumnSchema name="cf" KEEP_DELETED_CELLS="true" /></TableSchema>' \
"http://example.com:8000/users/schema"
|/_table_/schema
|PUT
-|Update an existing table with the provided schema fragment
+|Create a new table, or replace an existing table's schema
|curl -vi -X PUT \
-H "Accept: text/xml" \
-H "Content-Type: text/xml" \
- -d '<?xml version="1.0" encoding="UTF-8"?><TableSchema name="users"><ColumnSchema name="cf" KEEP_DELETED_CELLS="true" /></TableSchema>' \
+ -d '<?xml version="1.0" encoding="UTF-8"?><TableSchema name="users"><ColumnSchema name="cf" /></TableSchema>' \
"http://example.com:8000/users/schema"
|/_table_/schema