Skip to content

Tvrqvoise/myretail-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myretail-api

Installing

$ npm i

Running in debug mode

$ npm start

Running in production mode

$ npm run build
$ npm run production

Endpoints

Get details about a product: GET /products/v1/:sku

Example

$ curl localhost:3000/products/v1/13860428 | jq

Set a product's price: PUT /products/v1/:sku/price

Example

$ curl -X PUT localhost:3000/products/v1/13860428/price -d '{ "currentPrice": "20.00" }' -H "Content-Type: application/json" | jq

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published