๐๐
SuvaiGOAPI
FOOD ON THE MOVE
Running on port 3001 ยท InstantDB backend
| METHOD | ENDPOINT | DESCRIPTION |
|---|---|---|
| GET | /api/buses | List all buses |
| GET | /api/routes | List all routes |
| GET | /api/stops?routeId= | List rest stops (filter by routeId) |
| POST | /api/stops | Create a rest stop |
| GET | /api/stops/:id | Get a rest stop |
| PUT | /api/stops/:id | Update a rest stop |
| DELETE | /api/stops/:id | Delete a rest stop |
| GET | /api/restaurants?stopId= | List restaurants (filter by stopId) |
| POST | /api/restaurants | Register a new restaurant |
| GET | /api/restaurants/:id | Get a restaurant |
| PUT | /api/restaurants/:id | Update restaurant details |
| DELETE | /api/restaurants/:id | Delete a restaurant |
| GET | /api/restaurants/:id/menu | Get full menu grouped by sections |
| POST | /api/restaurants/:id/menu | Add a menu item |
| GET | /api/restaurants/:id/menu/:itemId | Get a menu item |
| PUT | /api/restaurants/:id/menu/:itemId | Update a menu item |
| DELETE | /api/restaurants/:id/menu/:itemId | Delete a menu item |
| PATCH | /api/restaurants/:id/menu/:itemId/availability | Toggle item availability (out of stock) |