DevOps Inventory Team
This app is live on IBM Cloud.
This repository contains the inventory service for an e-commerce business. The service is a REST API to maintain an accurate count of products and their attributes.
Note: This repo has a Vagrantfile
so the easiest way to play with it is to:
vagrant up
vagrant ssh
cd /vagrant
nosetests
flask run -h 0.0.0.0
If you have an IBM Cloud API key in ~/.bluemix/apiKey-inventory.json
on your vagrant machine, you can login with the following commands:
ibmcloud login -a https://cloud.ibm.com --apikey @~/.bluemix/apiKey-inventory.json -r us-south
ibmcloud target --cf -o mv2232@stern.nyu.edu -s dev
These are the RESTful routes for the Inventory Service
Endpoint Methods Rule
-------------------------- ------- -------------------------
index GET /
create_new_inventory_item POST /inventory
list_inventory_items GET /inventory
get_inventory_item GET /inventory/<inventory_id>
update_inventory_item PUT /inventory/<inventory_id>
delete_inventory_item DELETE /inventory/<inventory_id>
disable_supplier PUT /inventory/supplier/<supplier_id>
The test cases can be run with nosetests
.