Make sure you have Python3, pip, and virtualenv
source venv/bin/activate to start the virtual environment
pip install -r requirements.txt and finally,
python app.py (Server should be running on localhost:5000)
(Must specify correct API route, header, and at least a name in data dictionary. ID will be automatically specified.)
curl -X POST http://localhost:5000/create/ --header "Content-Type: application/json" -d '{"name": "phone", "color":"silver", "model": "iPhone"}'
curl -X PUT http://localhost:5000/update/<int:part_id>/ --header "Content-Type: application/json" -d '{"color": "orange"}'
curl -X DELETE http://localhost:5000/delete/<int:ID>/
curl -X GET http://localhost:5000/bom/
curl -X GET http://localhost:5000/assemblies/
curl -X GET http://localhost:5000/toplevel/
curl -X GET http://localhost:5000/subassems/
To list all component parts (parts that are not subassemblies, but are included in a parent assembly):
curl -X GET http://localhost:5000/components/
curl -X GET http://localhost:5000/orphans/
curl -X GET http://localhost:5000/assembly/children/<int: ID>
curl -X GET http://localhost:5000/parts/<int: ID>/
To list all assemblies that contain a specific child part, either directly or indirectly (via a subassembly):
curl -X GET http://localhost:5000/dependencies/<int: ID>/