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

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.

Co-authored-by: Franಠ_ಠis Conil <frconil@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
gchaps 2020-12-21 11:14:30 -08:00 committed by GitHub
parent e3f14864cf
commit 63478569cc
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"]