Orders API
Mobile API for order history. JWT authentication required.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /api/login | Authenticate and get a JWT |
| GET | /api/orders?customer_id=X | Retrieve orders for a customer |
| GET | /api/me | Your token claims |
Example
curl -s -X POST http://localhost:5000/api/login \
-H 'Content-Type: application/json' \
-d '{"username":"alice","password":"alice123"}'