Problem
src/modules/restaurant/restaurant.entity.ts defines the Restaurant entity but there is no RestaurantModule, RestaurantService, or RestaurantController. Restaurants can only be created as a side effect of user registration. There is no API to update restaurant info, change the URL slug, manage settings JSON, or support multi-location scenarios.
Proposed Solution
Create a complete RestaurantModule with the following endpoints, all scoped to the authenticated user's restaurantId from their JWT payload:
| Method |
Path |
Description |
GET |
/api/restaurant |
Get own restaurant info |
PATCH |
/api/restaurant |
Update name, phone, email, WhatsApp |
GET |
/api/restaurant/settings |
Get settings JSON blob |
PATCH |
/api/restaurant/settings |
Merge-update settings JSON |
Acceptance Criteria
Problem
src/modules/restaurant/restaurant.entity.tsdefines the Restaurant entity but there is noRestaurantModule,RestaurantService, orRestaurantController. Restaurants can only be created as a side effect of user registration. There is no API to update restaurant info, change the URL slug, manage settings JSON, or support multi-location scenarios.Proposed Solution
Create a complete
RestaurantModulewith the following endpoints, all scoped to the authenticated user'srestaurantIdfrom their JWT payload:GET/api/restaurantPATCH/api/restaurantGET/api/restaurant/settingsPATCH/api/restaurant/settingsAcceptance Criteria
GET /api/restaurantPATCH /api/restaurantwith a slug already used by another restaurant returns 409/^[a-z0-9-]+$/)