๐ŸšŒ๐Ÿš—

SuvaiGOAPI

FOOD ON THE MOVE

Running on port 3001 ยท InstantDB backend

METHODENDPOINTDESCRIPTION
GET/api/busesList all buses
GET/api/routesList all routes
GET/api/stops?routeId=List rest stops (filter by routeId)
POST/api/stopsCreate a rest stop
GET/api/stops/:idGet a rest stop
PUT/api/stops/:idUpdate a rest stop
DELETE/api/stops/:idDelete a rest stop
GET/api/restaurants?stopId=List restaurants (filter by stopId)
POST/api/restaurantsRegister a new restaurant
GET/api/restaurants/:idGet a restaurant
PUT/api/restaurants/:idUpdate restaurant details
DELETE/api/restaurants/:idDelete a restaurant
GET/api/restaurants/:id/menuGet full menu grouped by sections
POST/api/restaurants/:id/menuAdd a menu item
GET/api/restaurants/:id/menu/:itemIdGet a menu item
PUT/api/restaurants/:id/menu/:itemIdUpdate a menu item
DELETE/api/restaurants/:id/menu/:itemIdDelete a menu item
PATCH/api/restaurants/:id/menu/:itemId/availabilityToggle item availability (out of stock)