From 8cf1aaa004571d05a27559f75ba40ae8eeb1e163 Mon Sep 17 00:00:00 2001 From: Alberto Delgado Roda Date: Mon, 15 Jan 2024 12:53:38 +0100 Subject: [PATCH] remove .map from bundle_filepath value --- docs/apm/api.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/apm/api.asciidoc b/docs/apm/api.asciidoc index 341e75bbb835c..113a03437cbef 100644 --- a/docs/apm/api.asciidoc +++ b/docs/apm/api.asciidoc @@ -573,7 +573,7 @@ curl -X POST "http://localhost:5601/api/apm/sourcemaps" \ -H 'Authorization: ApiKey ${YOUR_API_KEY}' \ -F 'service_name="foo"' \ -F 'service_version="1.0.0"' \ --F 'bundle_filepath="/test/e2e/general-usecase/bundle.js.map"' \ +-F 'bundle_filepath="/test/e2e/general-usecase/bundle.js"' \ -F 'sourcemap="{\"version\":3,\"file\":\"static/js/main.chunk.js\",\"sources\":[\"fleet-source-map-client/src/index.css\",\"fleet-source-map-client/src/App.js\",\"webpack:///./src/index.css?bb0a\",\"fleet-source-map-client/src/index.js\",\"fleet-source-map-client/src/reportWebVitals.js\"],\"sourcesContent\":[\"content\"],\"mappings\":\"mapping\",\"sourceRoot\":\"\"}"' <1> -------------------------------------------------- <1> Alternatively, upload the source map as a file with `-F 'sourcemap=@path/to/source_map/bundle.js.map'` @@ -647,7 +647,7 @@ curl -X GET "http://localhost:5601/api/apm/sourcemaps" \ "body": { "serviceName": "foo", "serviceVersion": "1.0.0", - "bundleFilepath": "/test/e2e/general-usecase/bundle.js.map", + "bundleFilepath": "/test/e2e/general-usecase/bundle.js", "sourceMap": { "version": 3, "file": "static/js/main.chunk.js",