kibana/x-pack/test/api_integration/apis/file_upload
James Gowdy e77b45f9f9
[ML] Versioning file upload APIs (#158265)
Adds versioning to all of the file upload APIs.
Versions are added to the server side routes and to the client side
functions which call the routes.
Updates API tests to add the API version to the request headers.

All of the APIs are internal and have been given the version '1'.

Also renames `/internal/file_data_visualizer/analyze_file` to
`/internal/file_upload/analyze_file`
It appears this was a mistake from when the route was moved from the
data visualiser plugin midway through development on [this
PR](https://github.com/elastic/kibana/pull/96408).

**Internal APIs**

`/internal/file_upload/analyze_file`
`/internal/file_upload/has_import_permission`
`/internal/file_upload/index_exists`
`/internal/file_upload/time_field_range`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-05-24 18:17:57 +01:00
..
config.ts [ftr] split x-pack api integration tests based on plugin (#150837) 2023-02-13 15:06:11 +00:00
has_import_permission.ts [ML] Versioning file upload APIs (#158265) 2023-05-24 18:17:57 +01:00
index.ts
index_exists.ts [ML] Versioning file upload APIs (#158265) 2023-05-24 18:17:57 +01:00