In this repository I built the Andela Challenge for Store manager; which is more like an inventory for a particular store as well as a shop
To acces the API endpoints on heroku go to https://dry-hamlet-16502.herokuapp.com/
-
For allproducts https://dry-hamlet-16502.herokuapp.com/api/v1/products
-
For all sales https://dry-hamlet-16502.herokuapp.com/api/v1/admin/sales
-
To get products by ID https://dry-hamlet-16502.herokuapp.com/api/v1/products/:id Where ID can be any product's ID
-
To get sales by ID https://dry-hamlet-16502.herokuapp.com/api/v1/sales/:id/:password Where password is 1000
-
To post a particular https://dry-hamlet-16502.herokuapp.com/api/v1/product/admin-password Admin password can be any number
-
To post a sale record https://dry-hamlet-16502.herokuapp.com/api/v1/record/:attendant-password Attendant password can be any passowrd