post https://api.rollbar.com/api/1/sourcemap
In the above example, our website is http://example.com, we have a minified JavaScript file at http://example.com/js/example.min.js, and we have a source tree like this:
example/
example/static/js/example.min.js
example/static/js/example.min.map
example/static/js/site.js
example/static/js/util.js
Example
Here's an example cURL command:
curl https://api.rollbar.com/api/1/sourcemap \
-F access_token={access token} \
-F version=version_string_here \
-F minified_url=http://example.com/static/js/example.min.js \
-F source_map=@static/js/example.min.map \
-F static/js/site.js=@static/js/site.js \
-F static/js/util.js=@static/js/util.js
In the above example:
-
Our website is
http://example.com
-
We have a minified javascript file at
http://example.com/js/example.min.js
-
We have a source tree like this:
example/ example/static/js/example.min.js example/static/js/example.min.map example/static/js/site.js example/static/js/util.js