浏览代码

[DOCS] Move JSON encoding section (#71508)

James Rodewig 4 年之前
父节点
当前提交
7cd6952986
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      docs/reference/api-conventions.asciidoc

+ 7 - 7
docs/reference/api-conventions.asciidoc

@@ -1,9 +1,7 @@
 [[api-conventions]]
 [[api-conventions]]
 == API conventions
 == API conventions
 
 
-The {es} REST APIs are exposed using JSON over HTTP. The JSON request body must
-be UTF-8 encoded. {es} ignores any other encoding headings sent with a request.
-Responses are also UTF-8 encoded.
+The {es} REST APIs are exposed over HTTP.
 
 
 The conventions listed in this chapter can be applied throughout the REST
 The conventions listed in this chapter can be applied throughout the REST
 API, unless otherwise specified.
 API, unless otherwise specified.
@@ -685,7 +683,7 @@ should also be passed with a media type value that indicates the format
 of the source, such as `application/json`.
 of the source, such as `application/json`.
 
 
 [discrete]
 [discrete]
-==== Content-Type Requirements
+==== Content-type requirements
 
 
 The type of the content sent in a request body must be specified using
 The type of the content sent in a request body must be specified using
 the `Content-Type` header. The value of this header must map to one of
 the `Content-Type` header. The value of this header must map to one of
@@ -693,9 +691,11 @@ the supported formats that the API supports. Most APIs support JSON,
 YAML, CBOR, and SMILE. The bulk and multi-search APIs support NDJSON,
 YAML, CBOR, and SMILE. The bulk and multi-search APIs support NDJSON,
 JSON, and SMILE; other types will result in an error response.
 JSON, and SMILE; other types will result in an error response.
 
 
-Additionally, when using the `source` query string parameter, the
-content type must be specified using the `source_content_type` query
-string parameter.
+When using the `source` query string parameter, the content type must be
+specified using the `source_content_type` query string parameter.
+
+{es} only supports UTF-8-encoded JSON. {es} ignores any other encoding headings
+sent with a request. Responses are also UTF-8 encoded.
 
 
 [[url-access-control]]
 [[url-access-control]]
 === URL-based access control
 === URL-based access control