A way to track Inventory in a simple way for storage. Right now I'm still in the planning stage of this project will have an outline of how to use the api created and a way to add the to what is in the inventory delete from the inventory and check in and out of the inventory.
I plan on using a rasberry pi or arduino mega to scan barcodes and check againts the inventory. I also plan on adding a way for the inventory to have items added and removed throught the website and adding a barcode creator so that it is possible to a print of the barcodes from the website. As well as create new ones if old ones get distroyed.
For a quick start on the on the test api.
# Activate venv
$ pipenv shell
# Install dependencies
$ pipenv install
# Create DB
$ python
>> from app import db
>> db.create_all()
>> exit()
# Run Server (http://localhst:5000)
python app.pyThis is where the documentaion of the api that I create will go including the creation of the docker file and every single thing I installed to create a REST API for the tracking of the inventory.
All responses will be in this form:
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"
}Definition
GET /iventory
Response
200 OKon success
[
{
"item-id": "string",
"name": "string",
"barcode": "num",
"category": "string",
"inventory": "num",
"location": {
"site": "string",
"name": "string",
"shorthand": "string"
},
}
]Definition
POST /inventory
Arguments
Item
"item-id":stringUnique string of letters and numbers for idenification of an item e.g.SX0001"name":stringuser readble name of the item e.g.3-Pin XLR"barcode":numBarcode given to the item e.g.9772204821170"category":stringCategory of the item e.g.Sound"inventory":numNumber of how many item are in storage e.g.31
Location
"site":stringName of site stored at e.g.Paradise"name":stringName of room and shelf item is stored e.g.TS-Shelf01"shorthand":stringShort hand of the long version of name above e.g.TS-S1
Response
201 Createdon success
{
"item-id": "string",
"name": "string",
"barcode": "num",
"category": "string",
"inventory": "num",
"location": {
"site": "string",
"name": "string",
"shorthand": "string"
},
}Definition
GET /inventory/<item-id>
Response
404 Not Foundif the item does not exist200 OKon success
{
"item-id": "string",
"name": "string",
"barcode": "num",
"category": "string",
"inventory": "num",
"location": {
"site": "string",
"name": "string",
"shorthand": "string"
},
}Definition
DELETE /inventory/<item-id>
Response
404 Not Foundif the item does not exist204 No Contenton success