Skip to content

Commit

Permalink
include secret token in sourcemap upload example (elastic#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli authored and simitt committed Sep 25, 2018
1 parent e662278 commit ab02c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/sourcemap-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ You can configure a <<secret-token, secret token>> to upload sourcemaps.
[float]
==== Example

Example source map request
Example source map request including an optional <<secret-token, secret token>> "mysecret":

["source","sh",subs="attributes"]
---------------------------------------------------------------------------
curl -X POST http://127.0.0.1:8200/assets/v1/sourcemaps \
-H "Authorization: Bearer mysecret" \
-F service_name="test-service" \
-F service_version="1.0" \
-F bundle_filepath="http://localhost/static/js/bundle.js" \
Expand Down

0 comments on commit ab02c16

Please sign in to comment.