Replaces GET verb with POST to match the rest of the documentation. (#85926)

Both the documentation and the code (including tests) mention this should be a POST request. 

Proposing the same changes that were proposed in https://github.com/elastic/kibana/pull/85790 for backports to 7.x releases.
This commit is contained in:
Franಠ_ಠis Conil 2020-12-18 20:53:13 +01:00 committed by GitHub
parent 2df32de3a9
commit 70157ec607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ To add the `index.query.default_field` setting to an {es} index, submit a POST r
[source,js]
--------------------------------------------------
GET /api/upgrade_assistant/add_query_default_field/myIndex
POST /api/upgrade_assistant/add_query_default_field/myIndex
{
"fieldTypes": ["text", "keyword"], <1>
"otherFields": ["myField.*"] <2>
@ -83,7 +83,7 @@ Make the following request to {kib}:
[source,js]
--------------------------------------------------
GET /api/upgrade_assistant/add_query_default_field/myIndex
POST /api/upgrade_assistant/add_query_default_field/myIndex
{
"fieldTypes": ["text", "long"],
"otherFields": ["field2"]