Append DevTool commands automatically prefix Space (#140443) (#143591)

In DevTools, if you go to run `kbn:/s/foo/api/MY_REQUEST` then IF default space you effectively run `KIBANA/s/foo/api/MY_REQUEST` BUT IF non-default space e.g. `admin` you end up running `KIBANA/s/admin/s/foo/api/MY_REQUEST` which is invalid.

This is not pointed out in Dev Tools and since this page updated to the emphasize the DevTools example, this is tripping up more users who think it should work via this page.

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 75f2d0c714)

Co-authored-by: Stef Nestor <steffanie.nestor@gmail.com>
This commit is contained in:
Kibana Machine 2022-10-18 14:39:11 -06:00 committed by GitHub
parent a18b4bef86
commit 865270fd9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,8 @@ For example:
`GET kbn:/api/index_management/indices`
--------------------------------------------------
Note: this will automatically prefix `s/{space_id}/` on the API request if ran from a non-default Kibana Space.
[float]
[[api-authentication]]
=== Authentication