Prototype for SHAD -- Yttrium
GET http://eatcofriendly.000webhostapp.com/api/product/read.php
{
"records":[
{
"barcode":"0062020000743",
"product_name":"Nutella",
"company_name":"Ferrero",
"image":"https:\/\/www.cutpricebarrys.co.uk\/wp-content\/uploads\/2018\/10\/nutella.jpg",
"recyclable":"1",
"biodegradable":"0",
"disposal":"Lid - recycling bin\r\nContainer - recycling bin\r\nFoil - recycling bin\r\n\r\n*make sure to clean off all residue before recycling",
"points":"20",
"suggestions":null
},
{
"barcode":"0064100589988",
"product_name":"Mini-Wheats",
"company_name":"Kellogg's",
"image":"https:\/\/az836796.vo.msecnd.net\/media\/image\/product\/en\/medium\/0006410058998.jpg",
"recyclable":"1",
"biodegradable":null,
"disposal":"Box - recycling bin\r\nPlastic bag - garbage","points":"20","suggestions":null
}]
}
(yes, there are only 2 products)
GET http://eatcofriendly.000webhostapp.com/api/product/read_one.php?barcode=0062020000743
{
"barcode":"0062020000743",
"product_name":"Nutella",
"company_name":"Ferrero",
"image":"https:\/\/www.cutpricebarrys.co.uk\/wp-content\/uploads\/2018\/10\/nutella.jpg",
"recyclable":"1",
"biodegradable":"0",
"disposal":"Lid - recycling bin\r\nContainer - recycling bin\r\nFoil - recycling bin\r\n\r\n*make sure to clean off all residue before recycling",
"points":"20",
"suggestions":null
}
(also, we hosted with 000webhost because we didn't want to spend any money)