1.4.1 • Published 7 years ago
@thomann/sourcemap-service v1.4.1
microservice for providing versioned sourcemaps
Installation
Clone this repository and run the start script
$ git clone https://github.com/thomn/sourcemap-service.git
$ cd sourcemap-service
$ npm run startEndpoints
- GET:
/sm: -> retrival - POST:
/sm: -> upload - DELETE:
/sm: -> removal
QueryParameters
v(mandatory): version, only integer valuesn(mandatory): name, only alphanummeric values except.-_
Examples
post a map by a POST requesrt
curl -v -X POST -H "Content-Type: application/json" -d @styles.css.map "http://localhost:80/sm?v=2&n=styles.map"get a map by a GET requesrt
http://localhost:80/sm?v=8&n=foo.js.mapdelete a map by a DELETE request
http://localhost:80/sm?v=8&n=foo.js.map1.4.1
7 years ago