Files
elasticsearch/docs/04.ES-API上手.md
2023-04-19 08:43:29 +00:00

17 lines
438 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ES上手
# ES-API惯例
ES的 REST API 通过HTTP协议暴露通常遵循如下惯例
- 请求中必须要带 `Content-Type` 头部其值应该为API支持的类型包括JSONYAMLCBORSMILE
- Elasticsearch 仅支持UTF8编码的JSON响应也是UTF8编码。
- GET和POST请求大部分都是查询请求都可以带request body并非所有的http客户端都支持get方法带request body。