HBASE-20581 Fix documentation about schema updates

Signed-off-by: Balazs Meszaros <balazs.meszaros@cloudera.com>
This commit is contained in:
Josh Elser 2018-05-14 13:44:40 -04:00
parent dab0e90c54
commit f917f4e7c8
1 changed files with 4 additions and 4 deletions

View File

@ -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 '&lt;?xml version="1.0" encoding="UTF-8"?>&lt;TableSchema name="users">&lt;ColumnSchema name="cf" />&lt;/TableSchema>' \
-d '&lt;?xml version="1.0" encoding="UTF-8"?>&lt;TableSchema name="users">&lt;ColumnSchema name="cf" KEEP_DELETED_CELLS="true" />&lt;/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 '&lt;?xml version="1.0" encoding="UTF-8"?>&lt;TableSchema name="users">&lt;ColumnSchema name="cf" KEEP_DELETED_CELLS="true" />&lt;/TableSchema>' \
-d '&lt;?xml version="1.0" encoding="UTF-8"?>&lt;TableSchema name="users">&lt;ColumnSchema name="cf" />&lt;/TableSchema>' \
"http://example.com:8000/users/schema"
|/_table_/schema