THE COMPLETE KIOSKS AND ITEMS ENDPOINTS
At this point, Kitenge Api has a new home http://www.kiteng3.com/. I've also added endpoints that map out a relationship between the Kiosk and the Items that will be sold in them, as shown below.
CHECKOUT PREVIOUS ARTICLES:
- KIOSK — This is a shop that will be created by the vendor.
- GET ALL KIOSKS — fetch all kiosks from the DB.
- CREATE KIOSK — create a kiosk.
- GET SINGLE KIOSK ID — get a single kiosk by ID.
- UPDATE KIOSK — Update kiosk details.
- DELETE KIOSK — delete a kiosk from the DB.
- UPLOAD PHOTO — Upload a kiosk Profile photo.
2. ITEM — This is the product that will be sold in the kiosk
- GET ALL ITEMS — fetch all items from the DB.
- POST ITEM — create an item.
- ITEMS ASSOCIATED WITH KIOSK — fetch only items in a particular kiosk.
- GET ITEM BY ID — get a single Item from the DB.
- UPDATE ITEM — Update item details.
- DELETE ITEM — delete an item from the DB
The next step is to create the logic to let a user add reviews for both Kiosks and items. If you have other ideas/suggestions/corrections/criticisms that will guide me in building this project, PLEASE feel free to DM me on twitter or comment below.
Github: https://github.com/ma-za-kpe/Kitenge-Backend
Website: http://www.kiteng3.com/