Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 729 Bytes

File metadata and controls

35 lines (23 loc) · 729 Bytes

API Documentation - Food Ordering System

🌐 Base URL

Development: http://localhost:3001

🔐 Authentication

All protected endpoints require JWT token: Authorization: Bearer

📋 Authentication Endpoints

POST /auth/login

Authenticate user and receive JWT token

🏪 Restaurant Endpoints

GET /restaurants

Get list of restaurants (filtered by user country)

GET /restaurants/:id

Get specific restaurant details

GET /restaurants/:id/menu

Get menu items for a restaurant

📦 Order Endpoints

POST /orders

Create a new order (Admin/Manager only)

GET /orders

Get orders based on user role and country

PUT /orders/:id/cancel

Cancel an order (Admin/Manager only)