Ini adalah proses dasar BackEnd untuk toko bajigur cloth yang berisi :
- User -> untuk menyimpan data customer
- Product -> untuk menyimpan data detail product
- Inventory -> untuk menyimpan data inventory
- Order -> untuk menyimpan data pemesanan yang dilakukan oleh user
System dibangun dengan Python menggunakan library Flask, SQLAlchemy dan Marshmallow
pip install requirements.txt
Buat database BajigurCloth
- Model request body json
{
"nama":"Budi Santoso",
"phone":"0274 3788998",
"alamat":"Jalan Gendu 09, Yogyakarta"
}
- POST http://localhost:5000/user
- GET http://localhost:5000/user
- GET http://localhost:5000/user/
- PUT http://localhost:5000/user/
- DELETE http://localhost:5000/user/
- Model request body json
{
"bahan": "Combed Cotton 65S",
"harga": 75000,
"kodeSKU": "TS09090",
"namabarang": "Kaos Jetmen",
"ukuran": "Large",
"warna": "Biru Laut"
}
- POST http://localhost:5000/product
- GET http://localhost:5000/product
- GET http://localhost:5000/product/
- PUT http://localhost:5000/product/
- DELETE http://localhost:5000/product/
- Model request body json
{
"kodeSKU" : "SH0909",
"tanggalmasuk" : "2020-10-26 12:00:00",
"tanggalupdate" : "2020-10-26 12:00:00",
"stock" : 10,
"lokasi" : "B-10"
}
- POST http://localhost:5000/inventory
- GET http://localhost:5000/inventory
- GET http://localhost:5000/inventory/
- PUT http://localhost:5000/inventory/
- DELETE http://localhost:5000/inventory/
- Model request Body json
{
"userID" : 2,
"tanggalorder" : "2020-10-26 13:09:34",
"amount" : 700000,
"status" : "Lunas"
}