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

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>
This commit is contained in:
gchaps 2020-12-21 07:57:46 -08:00 committed by GitHub
parent 380fda1678
commit dcc5a05d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ Note: You cannot access this endpoint via the Console in Kibana.
[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>
@ -72,7 +72,7 @@ Making this request to Kibana:
[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"]