API Specs - Resto Reservation ADMIN API 1. POST /api/admin/restaurants Request Body:{ "mall_id”: “1”, // OR [“1”, “2”, “3”] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123, Jakarta", "description": "Famous for sate ayam and sambal.", "image_url": "https://example.com/sate.jpg", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" } Response:{ "message": "Restaurant created successfully", "data": { “id”: “id”, “mall”: { … }, // OR [ { … }, … ] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123, Jakarta", "description": "Famous for sate ayam and sambal.", "image_url": "https://example.com/sate.jpg", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" } } 2. PUT /api/admin/restaurants/:id Request Body:{ "mall_id”: “1”, // OR [“1”, “2”, “3”] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123, Jakarta", "description": "Famous for sate ayam and sambal.", "image_url": "https://example.com/sate.jpg", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" } Response:{ "message": "Restaurant created successfully", "data": { “id”: “id”, “mall”: { … }, // OR [ { … }, … ] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123, Jakarta", "description": "Famous for sate ayam and sambal.", "image_url": "https://example.com/sate.jpg", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" } } 3. DELETE /api/admin/restaurants/:id Response:{ "message": "Restaurant deleted successfully" } 4. GET /api/admin/restaurants Response: [ { "id": 1, “mall”: { … }, // OR [ { … }, … ] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123, Jakarta", "description": "Famous for sate ayam and sambal.", "image_url": "https://example.com/sate.jpg", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" }, ... ] ————————————————————— User API 1. GET /api/restaurants Query Params: { “mall_id”: “1”, “page”: 1, “page_size”: 10,} Response: [ { "id": 1, "name": "Sate Ayam Pak Kumis", "image_url": "https://example.com/sate.jpg", "description": "Famous for sate ayam...", "opening_hours": "10:00 - 22:00" }, ... ] 2. GET /api/restaurants/:id Response: { "id": 1, “mall”: { … }, // OR [ { … }, … ] "name": "Sate Ayam Pak Kumis", "address": "Jl. Merdeka No.123", "description": "...", "image_url": "...", "opening_hours": "10:00 - 22:00", "whatsapp": "+628123456789" }