File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
The {es} REST APIs are exposed over HTTP.
5
5
6
- The conventions listed in this chapter can be applied throughout the REST
7
- API, unless otherwise specified.
6
+ A number of {es} GET APIs--most notably the search API--support a request body.
7
+ While the GET action makes sense in the context of retrieving information,
8
+ GET requests with a body are not supported by all HTTP libraries.
9
+ All {es} GET APIs that require a body can also be submitted as POST requests.
10
+ Alternatively, you can pass the request body as the
11
+ <<api-request-body-query-string, `source` query string parameter>>
12
+ when using GET.
8
13
9
14
* <<multi-index>>
10
15
* <<date-math-index-names>>
@@ -672,6 +677,7 @@ The response looks like:
672
677
// TESTRESPONSE[s/"stack_trace": "java.lang.Number.+\.\.\."/"stack_trace": $body.error.caused_by.stack_trace/]
673
678
674
679
[discrete]
680
+ [[api-request-body-query-string]]
675
681
==== Request body in query string
676
682
677
683
For libraries that don't accept a request body for non-POST requests,
You can’t perform that action at this time.
0 commit comments